View Full Version : radio_button/column
pnorman
2005-06-09, 03:29 PM
I have a dialog with 8 radio buttons. I would like to group them in two columns of 4 rather than 1 row or column of 8. BUT how can I get the two columns (or clusters) of 4 to behave as one cluster. I have read the "help" and it says that a radio_column can be assigned an action BUT it has no "action" or "key" attribute and I haven't been able to get that to work?! Now I know I can assign an action to every radio button individually and control each cluster that way but I was hoping to take advantage of the PDB feature that manages radio buttons and ensures that only one per cluster is turned on at a time BUT have two clusters that behave as one!
Any clues would be great.
Cheers
P
pnorman
2005-06-09, 07:19 PM
For anyone who cares...
I managed to come up with a solution (although it didn't answer my question).
I had assigned each radio button a number 1-8 and using the following condition I can control the buttons in each column.
ID is a symbol containing the number of the button [1 to 8] that the user last picked...
So basically if ID is a radio button in cluster 1 then turn off cluster 2 and vice versa...
The (cond below is part of the "action_tile" function for each radio_button
(cond
((member ID '(1 2 3 4))
(foreach STR '("button5" "button6" "button7" "button8")
(set_tile STR "0")
)
)
((member ID '(5 6 7 8))
(foreach STR '("button1" "button2" "button3" "button4")
(set_tile STR "0")
)
)
)
If anyone knows how to assign an action to a radio_column or radio_row then I would still like to know.
Cheers
P
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.