π
<-
Chat plein-écran
[^]

Show Toolpalette on MouseDown

Pour TI-Nspire OS 3.0 ou ultérieur.

Show Toolpalette on MouseDown

Unread postby fredrik.ekelof » 18 Oct 2019, 21:33

Hi

I have created a custom menu (toolpalette) in my Lua program and it works just as it suppose to. The menu opens up when pressing the MENU key on the hand held and is accessible from the toolbar in the TI software, so far so good.

Now to the problem. I would like to create a button inside the program that opens up the menu. (similar to Windows start button), however I can not figure out how to achieve this.

Basically what I am looking for is a method for "on mouse down, open toolpalette".

Does anyone here knows if/how can be done?
User avatar
fredrik.ekelof
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 12.5%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):

Re: Show Toolpalette on MouseDown

Unread postby Adriweb » 19 Oct 2019, 08:22

Nope, sorry can't do this.

The only alternative, I suppose, would be to have a fully custom menu widget, like Levak did (Menu.lua here) for some of his programs many years ago:

Image
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 54.2%
 
Posts: 12933
Images: 1086
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
Class: (ingénieur)
Twitter: adriweb
GitHub: adriweb

Re: Show Toolpalette on MouseDown

Unread postby fredrik.ekelof » 19 Oct 2019, 10:10

Hi

Thanks for the reply.

I noticed the menu in Make3d is nested in to the screen class and currently I think this is a to great challenge for me to implement, as I am still learning how to code.

I will rethink the design of the program to perhaps use radio buttons or a drop down menu or something similar instead.

The purpose of the custom menu is to choose between three different calculation methods that shall be used by the program. If you have any other suggestions how implement a option selector in Lua I am all ears.
User avatar
fredrik.ekelof
Niveau 6: SM (Super Membre)
Niveau 6: SM (Super Membre)
Level up: 12.5%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):


Return to Nspire-Lua

Who is online

Users browsing this forum: No registered users and 2 guests

-
Search
-
Featured topics
L'OS 5.5 de la TI-83 Premium CE / 84 Plus CE supprime l'assembleur - la plupart des jeux et certains programme ne fonctionneront plus
Omega, le fork étendant les capacités de ta NumWorks, même en mode examen !
Découvre les nouvelles fonctionnalités en Python de l'OS 5.5 pour la 83PCE/84+C-T Python Edition
Comparaisons des meilleurs prix pour acheter sa calculatrice !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...

Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
630 utilisateurs:
>612 invités
>12 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)