Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - disabling command bar options
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

disabling command bar options

 Post Reply Post Reply
Author
Message
johnp View Drop Down
Groupie
Groupie
Avatar

Joined: 21 February 2008
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnp Quote  Post ReplyReply Direct Link To This Post Topic: disabling command bar options
    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!
Back to Top
johnp View Drop Down
Groupie
Groupie
Avatar

Joined: 21 February 2008
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnp Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.