Hi!
First of all, I'd like to applaud the wonderful wxAUI:)
I find that when I make a panel float and dock it , the frame can't restore after minimizd. I guess it is a bug, because it happens in the demo - "wxauitest.exe".
My OS is windowsXP.
regards
Kirix Support Forums
Can't restore frame while minimized
6 posts
• Page 1 of 1
- kobevaliant
- Registered User
- Posts: 4
- Joined: Thu Mar 09, 2006 3:23 am
Yes, I think I find how to fix this bug!
In manager.cpp line 2985:
m_hint_wnd = new wxFrame(m_frame, -1, wxEmptyString, pt, size,
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER);
I replace it with:
m_hint_wnd = new wxDialog(m_frame, -1, wxEmptyString, pt, size, wxDIALOG_MODELESS|wxNO_BORDER|wxTRANSPARENT_WINDOW);
Then everything work properly. I hope this would be helpful.
In manager.cpp line 2985:
m_hint_wnd = new wxFrame(m_frame, -1, wxEmptyString, pt, size,
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER);
I replace it with:
m_hint_wnd = new wxDialog(m_frame, -1, wxEmptyString, pt, size, wxDIALOG_MODELESS|wxNO_BORDER|wxTRANSPARENT_WINDOW);
Then everything work properly. I hope this would be helpful.
- kobevaliant
- Registered User
- Posts: 4
- Joined: Thu Mar 09, 2006 3:23 am
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Hello,
I've just fixed the problem. Your fix hadn't worked for me (it made the transparency effect not work anymore), so I had to try out some other stuff. After reviewing the possible wxFrame flags, I tried out the wxFRAME_TOOL_WINDOW flag, and that delivered the solution to the problem. Check out the upcoming wxAUI 0.9.2 release for the fix (should be a day or so from now);.
Best,
Ben
I've just fixed the problem. Your fix hadn't worked for me (it made the transparency effect not work anymore), so I had to try out some other stuff. After reviewing the possible wxFrame flags, I tried out the wxFRAME_TOOL_WINDOW flag, and that delivered the solution to the problem. Check out the upcoming wxAUI 0.9.2 release for the fix (should be a day or so from now);.
Best,
Ben
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
hi,
That's great! I'm glad that wxAUI 0.9.2 is released. Thank you for so wonderful job.
Here's a patch to fix a focus problem
wxAUI 0.9.2 manager.cpp line 4130
change to
That's great! I'm glad that wxAUI 0.9.2 is released. Thank you for so wonderful job.
Here's a patch to fix a focus problem
wxAUI 0.9.2 manager.cpp line 4130
- Code: Select all
void wxFrameManager::OnChildFocus(wxChildFocusEvent& event)
{
// when a child pane has it's focus set, we should change the
// pane's active state to reflect this. (this is only true if
// active panes are allowed by the owner)
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
{
if (GetPane(event.GetWindow()).IsOk())
{
SetActivePane(m_panes, event.GetWindow());
m_frame->Refresh();
}
}
}
change to
- Code: Select all
void wxFrameManager::OnChildFocus(wxChildFocusEvent& event)
{
// when a child pane has it's focus set, we should change the
// pane's active state to reflect this. (this is only true if
// active panes are allowed by the owner)
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
{
wxWindow *win = event.GetWindow();
for (;;)
{
if(win==NULL||GetPane(win).IsOk())
{
if(win!=NULL)
{
SetActivePane(m_panes, win);
//m_frame->Refresh();
Repaint();
}
break;
}
win = win->GetParent();
}
}
}
- kobevaliant
- Registered User
- Posts: 4
- Joined: Thu Mar 09, 2006 3:23 am
6 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback