What I have tested and is working under a wxButton test is:
Code: Select all
btnClose->SetFocus();
txtRecip->SelectNone(); //Removes selection from existing text
Code: Select all
void email_GUIFrame::OnActivate(wxCommandEvent& event)
{
btnClose->SetFocus();
txtRecip->SelectNone();
}
Will I have to call a timer? Would still need to know when frame is Ready.
Edit: HasFocus() didn't work either.