Print Page | Close Window

Bug in ID property

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=2782
Printed Date: 06 October 2024 at 12:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in ID property
Posted By: mlatona
Subject: Bug in ID property
Date Posted: 25 August 2005 at 3:48am

When I add a popup control to a commandbar and set the ID property in the add function, the value is not saved in the property from the popup control. For example with a button control it works. When I set the property after it is created it works.

Try this code:

With CommandBars1(1).Controls.Add(xtpControlPopup, 2, "Filter")
  MsgBox .Id
End With

With CommandBars1(1).Controls.Add(xtpControlButton, 2, "Filter")
  MsgBox .Id
End With

 




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