Print Page | Close Window

Issue in Menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8063
Printed Date: 18 September 2025 at 11:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Issue in Menu
Posted By: KumarCJ
Subject: Issue in Menu
Date Posted: 18 September 2007 at 8:53am
Hi,
 
 
To display, "Window List" under window menu, I had added Window List with ID  35000. This is working fine.
 
But to display "More Window" option in "Window" menu, when 1 or more view are open. What i should do?
 
I had implemented "More Window" option as given in Samples\UserInterface\GUI_VisualStudio
 
But the Issue is that, When all the view are closed, the "More Window" is visible in Window menu.
 
Similar to "Window List", is there any predefind ID For "More Window"?
 
So that "More Window" should visible when view are opend and it should not be visible when no view are opened.
 
Thanks,
KumarCJ.



Replies:
Posted By: Oleg
Date Posted: 18 September 2007 at 1:30pm
Hi,
 
Just add update handler for this id and show/hide control when you need:
 
CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);
 if (pControl)
 {
  pCmdUI->SetVisible(bVisible);
 }


-------------
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