Page 1 sur 1

Show Toolpalette on MouseDown

Message non luPosté: 18 Oct 2019, 21:33
de fredrik.ekelof
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?

Re: Show Toolpalette on MouseDown

Message non luPosté: 19 Oct 2019, 08:22
de Adriweb
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

Re: Show Toolpalette on MouseDown

Message non luPosté: 19 Oct 2019, 10:10
de fredrik.ekelof
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.