Print Page | Close Window

disabling command bar options

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10458
Printed Date: 18 September 2024 at 9:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: disabling command bar options
Posted By: johnp
Subject: disabling command bar options
Date Posted: 02 May 2008 at 3:33pm
I don't know what I'm missing but, when set the command bar actions equal to disabled it is making them invisible. Would appreciate any ideas on why this might be. Thanks!



Replies:
Posted By: johnp
Date Posted: 02 May 2008 at 3:51pm
Okay, I did a little playing around and found the following (which really doesn't make any sense at all:
 
I have the following line of code in my program (that I copied from one of the sample projects:
 
Set ControlEdit = CommandBars.ActiveMenuBar.Controls.Add(xtpControlButtonPopup, ID_TOOLBAR_EDIT, "&Edit")
 
When I add this line of code on the next line -  ControlEdit.Caption = "&Edit" - disabling the button no longer makes it invisible



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