Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - how to get F1 help working on docking pane control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to get F1 help working on docking pane control

 Post Reply Post Reply
Author
Message
klausd View Drop Down
Newbie
Newbie


Joined: 22 December 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote klausd Quote  Post ReplyReply Direct Link To This Post Topic: how to get F1 help working on docking pane control
    Posted: 17 September 2007 at 4:33am
I would like to support 'F1 help' for the controls of a
docking pane (like title bar, close box or pane tabs).

While context help is supported via CXTPDockingPaneTabbedContainer::OnHelpHitTest,
F1 help seems not to be supported per se.
What would be the most appropriate way to implement it?
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: 17 September 2007 at 5:28am
Hi,
 
You can create class derived from CXTPDockingPaneTabbedContainer catch OnHelpHitTest and return your values for close and caption. Now override CDockingPaneManager and add
 
 
CXTPDockingPaneBase* CDockingPaneManager::OnCreatePane(XTPDockingPaneType type, CXTPDockingPaneLayout* pLayout)
{
 if (type == xtpPaneTypeTabbedContainer)
  return new CMyDockingPaneTabbedContainer(pLayout);
 
 return CXTPDockingPaneManager::OnCreatePane(type, pLayout);
}
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
klausd View Drop Down
Newbie
Newbie


Joined: 22 December 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote klausd Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2007 at 5:50am
Oleg,

AFAIK OnHelpHitTest is called only for context help
(via CFrameWnd::OnContextHelp), it is not involved
in F1 help.

The command bar classes seem to implement this by
remembering the selected control and then hooking the
ID_HELP command message of the frame. I see no similar
mechanism in the docking pane classes, though.

Regards
Klaus
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: 18 September 2007 at 2:23am
Hello,
 
Yes it will work for context help. if user press F1 instead of context help, he is waiting help for current docking pane window.
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.203 seconds.