From WxWiki
Jump to: navigation, search


Sending a wxEVT_COMMAND_BUTTON_CLICKED with wxPostEvent or GetEventHandler()->AddPendingEvent() will not make the button visually �click�, it will only call the event handler (thus you might just as well call the event handling directly, instead of using an event).

Not sure if it�s possible to make a wxButton visually click programmatically. If you know how, please edit this page :)

See also: official docs: wxButton