my question is related to the the book example personelrecorddialog.How can we say
Code: Select all
if (ageCtrl->GetValue() < 18)
{
event.Enable(false);
event.Check(false);
}
else
event.Enable(true);
Code: Select all
if (ageCtrl->GetValue() < 18)
{
event.Enable(false);
event.Check(false);
}
else
event.Enable(true);
wxUpdateUIEvents are defined to work this way. From the docs:to update the checkbox control(shouldnt we use control itself?)?
http://docs.wxwidgets.org/stable/wx_wxu ... ateuieventInstead of directly manipulating the menu or button, you call functions in the event object, such as wxUpdateUIEvent::Check. wxWidgets will determine whether such a call has been made, and which UI element to update.