cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Check box for integer parameter

Bruce
Booster

How do I have a check box on the interface when my parameter is an integer, not boolean?


It's a long story, but I have a 2-dimension array: column 1 is the story index, column 2 is 1 or 0 to show or hide.  Is there a simple way to display this second column as a check box option, or do I need to create another dummy array as a boolean?

Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
4 REPLIES 4

lukaso
Booster

UI_INFIELD{4} with a picture? see files

Mac OSX - up to date

Archicad 6 to 25

DGSketcher
Rockstar

@Bruce Are you using the default parameter display or the Parameter Script to set the values?

Apple iMac macOS Monterey / AC26UKI (most recent builds)

Yves
Booster

Hi,

two other possibilities

 

 

!!!!Master or Parameter Script

VALUES{2} "column_2" 0,"No",
1,"Yes"



!!!!!!!Interface script
UI_INFIELD{3} "column_2", 10, 10, 50, 15,
8, "", 2, 1, 0, 0, 0, 0,
0, "No",0,
1, "Yes", 1


UI_PICT_RADIOBUTTON "column_2", 0, "No",
"", 10, 50, 50, 15

UI_PICT_RADIOBUTTON "column_2", 1, "Yes",
"", 10, 70, 50, 15

 

 

Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13

Bruce
Booster

Thanks guys.  I can't use the parameter script to set the values, as column 1 of the array isn't boolean.

 

I ended up creating another proxy array of boolean type, that copies its values into the first array when modified.

Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC25 5010 AUS Full | Windows 10 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!