π
<-

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 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 88%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):
MyCalcs profile

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

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.9%
 
Posts: 14836
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
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 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 88%
 
Posts: 10
Joined: 09 Oct 2019, 13:37
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Nspire-Lua

Who is online

Users browsing this forum: ClaudeBot [spider] and 4 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
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.
1158 utilisateurs:
>1152 invités
>1 membre
>5 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)