Print Page | Close Window

how to get F1 help working on docking pane control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=8032
Printed Date: 05 May 2024 at 10:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to get F1 help working on docking pane control
Posted By: klausd
Subject: how to get F1 help working on docking pane control
Date 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?



Replies:
Posted By: Oleg
Date 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


Posted By: klausd
Date 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


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net