Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Pane does not go away when focus lost
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane does not go away when focus lost

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Pane does not go away when focus lost
    Posted: 05 May 2007 at 7:19am
Hi,
 
I think I have found like 10 bugs the last two days. I deserve a beer now
 
Anyway, I have a CXTPDockingPaneManager in my CMainFrame (TDI). I set the following in OnCreate():
 
m_paneManager.InstallDockingPanes(this);
m_paneManager.SetClientMargin(3);
m_paneManager.SetTheme(xtpPaneThemeOffice2003);
m_paneManager.SetDefaultPaneOptions(xtpPaneNoCloseable | xtpPaneNoFloatable);
m_paneManager.SetAlphaDockingContext(TRUE);
m_paneManager.EnableKeyboardNavigate(xtpPaneKeyboardUseAll);
 
Then I add one pane:
 
CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(IDC_SETTINGS_GRID, CRect(0, 0, 250, 120), xtpPaneDockLeft);
CXTPDockingPaneAutoHideWnd::m_nMouseHoverDelay = 500;
pwndPane1->Attach(&m_paneSettings);
pwndPane1->Hide();
pwndPane1->SetMinTrackSize(CSize(250, 150));
pwndPane1->SetMaxTrackSize(CSize(250, INT_MAX));
 
Problem:
Now, I do not have any views open! if I hover on the auto-hidden pane, it pops up. But then it does not disappear until I do some special thing like resizing the whole application window. Usually, it disappears as soon as I hover over a view, but in this case there are no views!
 
Not a serious bug, but still...
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2007 at 8:06am
Hello,
You have call Attach in Notfy message handler.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.