Print Page | Close Window

Bug with Control ID and xtpControlPopup

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=496
Printed Date: 11 May 2024 at 2:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug with Control ID and xtpControlPopup
Posted By: Boyd
Subject: Bug with Control ID and xtpControlPopup
Date 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.




Replies:
Posted By: asd123456789
Date Posted: 13 May 2004 at 1:37am

Thanks!I found my ID_MENU_FILE.




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