![]() |
Issue in Menu |
Post Reply
|
| Author | |
KumarCJ
Groupie
Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
Quote Reply
Topic: Issue in MenuPosted: 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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |