I create consoles One, Two, and Three - all partially overlapping, so One is overlapped by Two which is overlapped by Three - this last being the front one.
When I click on One or Two, it gains focus and becomes the active window as expected. But it remains partially obscured by the later-created windows. I have tried processing the wxActivateEvent thus:
Code: Select all
void Console::OnActivate( wxActivateEvent& event ){
if (!isActiveWindow){
TRACE(4, wxString::Format(_("Activatating %s for reason %d"), mConsoleName, event.GetActivationReason()));
Raise();
isActiveWindow = true;
RequestRefresh(m_parent);
}
else {
TRACE(4, wxString::Format(_("Deactivatating %s for reason %d"), mConsoleName,
event.GetActivationReason()));
Lower();
isActiveWindow = false;
}
}
Please can SKS enlighten me on how to make the active console become the front-most?