Active window isn't returning true from IsActive() under wxGTK.
My software has a main window and a set of tool windows, all derived from wxFrame. When the main window is moved it captures the move event and calls a position method in all the tool windows so that they all move together.
Each of the tool windows can be moved independently, and when the user moves them I need to catch the move event and update their position relative to the main window. To check whether they're being moved by the user or the main window I use IsActive(). This works fine under wxMSW and wxOSX but not wxGTK.
void ToolBox::OnMove(wxMoveEvent& event)
{
wxPoint shift;
if(IsActive()) {
wxPoint newpos = GetPosition();
(calculate new postion)
}
}
ToolBox is derived from wxFrame
Is this a bug in wxGTK? Better way to do this?