Reply To: Array in interface not displaying text

Home Forums Problems and solutions in GDL Graphical UI and parameters list Array in interface not displaying text Reply To: Array in interface not displaying text

#3639
Dominika Bobály
Keymaster

Try this, please:
UI_INFIELD{3} shelf_fixing(3), 10, 70, 150, 19,
8, “”,
0, 0, 0, 0, 0, 0,
“”, “Fixed”, 0,
“”, “Adjustable”, 1 UI_TOOLTIP “Shelf fixing”

UI infield types of old are not always prepared to handle array params on UI. You have to use infield version 3 instead of 2 for arrays. It both works for integer and string types as well.
In case “shelf_fixing” is a string type array, the UI works like this (both version 2 and 3 are okay):
UI_INFIELD{2} shelf_fixing(3), 10, 70, 150, 19
Or, to have the nicer text popup use:
UI_INFIELD{3} shelf_fixing(3), 10, 70, 150, 19,
8, “”,
0, 0, 0, 0, 0, 0,
“”, “Fixed”, “Fixed”,
“”, “Adjustable”, “Adjustable” UI_TOOLTIP “Shelf fixing”

Of course in string type case the paramscript should be:
values “shelf_fixing” “Fixed”, “Adjustable”

Good luck.

Dominika Bobály
Product Manager
GRAPHISOFT SE