How to call an programmatically generated event for wxRadioButton in wxWidgets ?

Posted by Jakub Czaplicki on Stack Overflow See other posts from Stack Overflow or by Jakub Czaplicki
Published on 2010-03-30T15:13:16Z Indexed on 2010/03/30 15:53 UTC
Read the original article Hit count: 343

Filed under:
|
|

I am trying to programmatically change a value of a wxRadioButton in a way the user would do it. A value change doesn't call the event corresponded to the button, and it make sense since the documentation says it clearly:

wxRadioButton::SetValue
void SetValue(const bool value)
Sets the radio button to selected or deselected status.
This does not cause a wxEVT_COMMAND_RADIOBUTTON_SELECTED event to get emitted.

So the question is how can I call an programmatically generated event for a wxRadioButton ?

I guess that it's something to do with:

wxWindow window->AddPendingEvent(wxEvent *event )

A simple example would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about wxwidgets

Related posts about events