Reply To: Use buttons to select variable from a parameter

Home Forums Problems and solutions in GDL Graphical UI and parameters list Use buttons to select variable from a parameter Reply To: Use buttons to select variable from a parameter

#18652
Péter Baksa
Keymaster

Method 5 is a simple pushbutton, it only has on/off states.
With method 4 or 6 more states are available, but you have to draw the pictures on the buttons, just giving a string is not possible.
All options go in the same statement:

ui_infield{3} "existing", 0, 100, 100, 20,
	4, "", 0, 0,
	0, 0, 0, 0,
	0, "one", 1,
	0, "two", 2,
	0, "three", 3

And setting the options in parameter script is also necessary:
values "existing" 1,2,3

To use strings code many boolean buttons, which are conected in the parameter script and only one of them can be selected.

Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE