Grouped Option Button Return Values

Started by JEdwardL, April 19, 2012, 10:30:26 AM

Previous topic - Next topic

JEdwardL

Is there a way to tell which option button in a group is checked without testing each one individually?

I was thinking of something similar to Autocad's DCL radio_column or radio_row tiles.

I can test the value for each of the controls, but it seems like there should be a simpler method.

Thank you

J Leavitt

Fred Tomke

Hi, you can compare radio_column or radio_row tiles with the option list. There you can check it using (dcl_OptionList_GetCurSel <CONTROL>). For individual option buttons you have to write individual code :)

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

JEdwardL

Fred,

So, it appears that the answer is no.

This functionality might be a feature to be explored for future versions of OpenDCL.  If individual buttons within a group can be turned off because a another was selected then it seems like only a small step to providing a status return code for the entire group.  I don't know much about how OpenDCL coding works, but perhaps the control query could be tied to the first button in the group or even naming the group.  Although it works find as it is, this feature would simplify coding in the LISP file.

Thanks for your reply.

J Leavitt


Fred Tomke

Hi, an OpenDCL option button is a standard
option button, a frame is a frame. There is no relation
between them. The optionlist provides exactly what you want,
except the frame and the horizontal alignment.
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]