Print Page | Close Window

CXTPCommandBar

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=10888
Printed Date: 15 November 2025 at 4:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCommandBar
Posted By: simus
Subject: CXTPCommandBar
Date Posted: 03 June 2008 at 8:21am
Hi,

I have a CommandBar that is arranged as followed

File              Test
  &New            &SubTest
  &Open                 subsubTest1
                              subsubTest2

What I would like to do is to hide the &SubTest control depending a registry value. But the &SubTest have no IDs only subsubTest1 have an ID.

So the code I'm loking for is how to get the parent control of subsubTest1 from the whole command bar and then hide it.

Thanks



Replies:
Posted By: Oleg
Date Posted: 03 June 2008 at 9:22am
Hi,

There is trick to assign some id for submenus. in menu editor change "&SubTest" to "SubTest\t100" now you can add Update Handler for id = 100 and hide it.


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