Thursday - last edited Thursday
Hello everyone,
Can you please give me an example of a short script of the UI_INFIELD{4} command to create 3 or 4 "Push icon radio control" (method 4) using matching images
THANKS
Solved! Go to Solution.
Thursday - last edited Saturday by Laszlo Nagy
Hi @Sofiane LPAF ,
Assuming "abcde" is an integer type parameter...
In the Parameter script :
values "abcde" 1, 2, 3, 4
In the Interface script :
ui_dialog "Options", 520, 300
cell_width = 124
cell_height = 93
choices = 4
ui_infield{4} "abcde", 5, 5, cell_width*choices+10, cell_height+10, ! coordinates, dimensions
4, "xy3.png", ! method, picture
choices, 4, ! pictures, rows
cell_width, cell_height, cell_width, cell_height, ! cell, pic dimensions
1, "", 1,
2, "", 2,
3, "", 3,
4, "", 4
Attached, updated versions of your picture with some transparency so there the button behavior is still visible. xy2.png has 0 white background while xy3 keeps the white background within the contours.
Thursday - last edited Saturday by Laszlo Nagy
Hi @Sofiane LPAF ,
Assuming "abcde" is an integer type parameter...
In the Parameter script :
values "abcde" 1, 2, 3, 4
In the Interface script :
ui_dialog "Options", 520, 300
cell_width = 124
cell_height = 93
choices = 4
ui_infield{4} "abcde", 5, 5, cell_width*choices+10, cell_height+10, ! coordinates, dimensions
4, "xy3.png", ! method, picture
choices, 4, ! pictures, rows
cell_width, cell_height, cell_width, cell_height, ! cell, pic dimensions
1, "", 1,
2, "", 2,
3, "", 3,
4, "", 4
Attached, updated versions of your picture with some transparency so there the button behavior is still visible. xy2.png has 0 white background while xy3 keeps the white background within the contours.
Thursday
I thank you very much for your help, clear and precise, it works very well. Thank you once again for your time, see you next time!!!
Friday
Good to know it worked ! If you can, please mark my previous post as solution so people see your question as solved if they look for the same answer 🙂
I would also advise to resize the pictures beforehand so they look cleaner in the UI. If the resizing is done with GDL in Archicad, the .pngs will look blurry.