jeudi 26 mars 2015

WxWidgets dynamic event handler resize


In WxWidgets when using a Dynamic event table versus a static one, with capturing a resize event. with a static table I use



EVT_SIZE(MyFrame::OnSize)


and for reference for a menu item I use



EVT_MENU(wxID_ABOUT, MyFrame::OnAbout)
//for the dynamic
frame->Connect( wxID_ABOUT,
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(MyFrame::OnAbout) );


ok so with the menu in the dynamic setup wxEVT_COMMAND_MENU_SELECTED is used while in the static setup I use EVT_MENU. so my question is what do I use instead of EVT_SIZE? I'm also wondering what the differance is between the two EVT_MENU and wxEVT_COMMAND_MENU_SELECTED. One more what type of thing are they in c++? enums




Aucun commentaire:

Enregistrer un commentaire