Changing Menu Caption |
Post Reply |
Author | |
rdtcgriffin
Newbie Joined: 18 March 2004 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 19 March 2004 at 2:50am |
Hello! I have the following code to create the menu: Set ControlView = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 1, "File", -1, False) Then, later on I would lile to change the captions of the menu. For the main menu (File) I can change teh caption using: CommandBars.ActiveMenuBar.Controls.Item(1).Caption = "FileX" But for it's submenus, I get "Invalid procedure call or argument" error message when I try this: What method should I use so that I can change the captions? Also, is the solution the same for toolbars? Thanks in advance! Rommel ========= sorry, should have posted in VB area
Edited by rdtcgriffin |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
CommandBars.ActiveMenuBar.Controls(1).CommandBar.Contr ols(2).Caption = "FileX"
|
|
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 |