I have an edit control in AUI panel. Using EVT_UPDATE_UI I update it, but of course only when it is not in focus.
Code: Select all
void CMainFrame::OnUpdateFrameNumber(wxUpdateUIEvent& i_event)
{
...
wxWindow* wnd = FindFocus();
if (!wnd || (wnd->GetId() != ID_FRAME_EDIT_CONTROL))//Frame editbox is not in focus
{
GetFrameNumber();
...
I would stand with 2.8.11, but 2.9.x has some very pleasant fixes. Probably someone knows what happens with FindFocus in 2.9.2? Probably I just should make some changes in code. Any help would be greatly appreciated.
Thank you.