Print Page | Close Window

how can i manipulate a docking pane with menu item

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=15693
Printed Date: 26 April 2024 at 8:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how can i manipulate a docking pane with menu item
Posted By: rienzi
Subject: how can i manipulate a docking pane with menu item
Date Posted: 22 November 2009 at 9:58pm

I want to link a menu item to a docking pane.

I imitated the sample named GUI_VisualStudio_vc80. I defined the CXTPDockingPaneManager member variable and added an dialog to it successfully. Then I wanna manipulate the opening and closing of the docking pane with menu item. I added a new menu item with the same ID, IDR_PANE1 to my main menu resource. But the menu item do not work. It is just unfocused when the App starts.
 
 
I wonder how to link the docking pane to a menu item please.
tell me, big master please...



Replies:
Posted By: Oleg
Date Posted: 23 November 2009 at 5:23am
So you need add handler for IDR_PANE1  command.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rienzi
Date Posted: 24 November 2009 at 3:11am
i find that the sample GUI_VisualStudio_vc80 does not add handler for menu command. The menu item just has the same ID, for example IDR_PANE1, to the linked docking pane. But it still works right. I have searched. There is definitely no menu command handler in any of the classes in the sample's project.  I wonder why.
 
 
 
now i have added handler to my menu item and successfully linked the docking panes to menu items respectively. So the question above is not necessary to answer.


Posted By: Oleg
Date Posted: 25 November 2009 at 4:56am
Hi,
 
It has "range" command to handle all Panes:
 
ON_COMMAND_RANGE(ID_VIEW_SOLUTIONEXPLORER, ID_VIEW_TOOLBOX, OnShowView)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rienzi
Date Posted: 26 November 2009 at 1:49am

ho, i see

i'm sorry and thanks a lot, big master



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