I’m using a popup menu with wxTaskBarIcon on windows (wxWidgets-2.8.9). If I fill popup menu with radio items, they do not change state when clicked. First item in popup menu list is marked as selected. But selecting any other item does not change this.
Currently there is no item click event handler (application is more like UI prototype). Should i manually update item check status in this handler or it is still framework duty?
You should use
EVT_UPDATE_UI(yourCommandID, yourEventHandler)for checking/unchecking and enabling/disabling menu items. In your UpdateUI event handler you should specify cases when your item is enabled E.g. you have radiobutton group with commands ID_RADIO_1 and ID_RADIO_2 and they should be checked depending on conditionbool m_SomeConditionVariablethen you should create 2 event handlers for them likeand in this case first radio item will be checked only when variable is false and second will be checked when variable is true.
You can use also calculated condition instaed of storing variable e.g.