Bug with Control ID and xtpControlPopup |
Post Reply |
Author | |
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
Posted: 04 March 2004 at 10:21am |
I've noticed a bug when adding a Control to a CommandBar that I wanted to bring to Codejock's attention. If the control is of type 'xtpControlPopup', the value specified for ID is not stored. For example, the following code will not supply the control with an ID Set Control = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, ID_MENU_FILE, "File", -1, False) Instead, you have to specify the ID of the control AFTER it is created. Then it will get saved. Set Control = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, ID_MENU_FILE, "File", -1, False) The same problem is apparent in the Designer Studio. Add any new control that is of type 'xtpControlPopup'. After the control is added, you'll see that the 'ID' field in the properties pane is empty. Edited by Boyd |
|
asd123456789
Newbie Joined: 12 May 2004 Location: China Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Thanks!I found my ID_MENU_FILE. |
|
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 |