π
<-
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: 51.7%
 
Posts: 12655
Images: 1081
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 1 guest

-
Search
-
Featured topics
Concours TI-Planet-Casio de rentrée 2019. 3 défis pour plus d'une 15aine de calculatrices graphiques et nombre de goodies sortant de l'ordinaire ! :D
Comparaisons des meilleurs prix pour acheter sa calculatrice !
12
-
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 
-
Stats.
771 utilisateurs:
>698 invités
>67 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)