π
<-
Chat plein-écran
[^]

Show Toolpalette on MouseDown

Pour TI-Nspire OS 3.0 ou ultérieur.

Show Toolpalette on MouseDown

Message non lude 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?
Avatar de l’utilisateur
fredrik.ekelof
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 88%
 
Messages: 10
Inscription: 09 Oct 2019, 13:37
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Show Toolpalette on MouseDown

Message non lude 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
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...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80%
 
Messages: 14599
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: Show Toolpalette on MouseDown

Message non lude 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.
Avatar de l’utilisateur
fredrik.ekelof
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 88%
 
Messages: 10
Inscription: 09 Oct 2019, 13:37
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile


Retourner vers Nspire-Lua

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 6 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
839 utilisateurs:
>814 invités
>20 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)