Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Bug with Control ID and xtpControlPopup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug with Control ID and xtpControlPopup

 Post Reply Post Reply
Author
Message
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Topic: Bug with Control ID and xtpControlPopup
    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)
Control.ID = ID_MENU_FILE

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
Back to Top
asd123456789 View Drop Down
Newbie
Newbie


Joined: 12 May 2004
Location: China
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote asd123456789 Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2004 at 1:37am

Thanks!I found my ID_MENU_FILE.

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.187 seconds.