1. wxRadioBox
- Posted by buzzo Jun 22, 2012
- 1215 views
When a wxRadioBox (Win 7) is first displayed, a radiobutton is "set". This default is the second radiobutton (1) in the group. But clicking on this already set radio button does nothing. I can "set" a radiobutton with set_radiobox_selection ( atom box, integer selection ), but it can not be selected either.
Have studied docs at wxwidgets.org and found no solution. Found nothing on the web either.
How can the wxRadioBox be initilized with no radiobutton selected; or if "set", how to enable that particular radiobutton?
2. Re: wxRadioBox
- Posted by buzzo Jun 22, 2012
- 1221 views
The default is set to 0... not 1..
Also note that in the set_event_handler, wxEVT_COMMAND_RADIOBOX_SELECTED works, whereas wxEVT_COMMAND_RADIOBUTTON_SELECTED does not .
-- select a link procedure onSet_lradio(atom this, atom event_type, atom id, atom event ) screenSet(-2) linkNum = (get_radio_selection(this)+1)*10 screenSet((get_radio_selection(this)+1)*10) end procedure set_event_handler(lradio,get_id(lradio),wxEVT_COMMAND_RADIOBOX_SELECTED, routine_id("onSet_lradio"))