1. wxRadioBox

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?

new topic     » topic index » view message » categorize

2. Re: wxRadioBox

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")) 
new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu