Print Page | Close Window

Name or Tag property needed!

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=17585
Printed Date: 16 September 2024 at 4:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Name or Tag property needed!
Posted By: Jebo
Subject: Name or Tag property needed!
Date Posted: 22 November 2010 at 12:52pm
Hello CJ,

For CommandBar buttons, there is probably only the field "Caption" and ID to enter information. But, I must save a GUID on each button (for a later Select Case in "CommandBars_Execute(..)"). Confused

The only solution I see at the moment is to store a Array for each CommandBar-List. In the Array I save for each ID-Long-Value the right GUID. But this is not really nice...! Ouch

So is there a way to store on each button a String-value?

I have not found a property such as "Tag" or "NameID". If there is not that could be added with v15?



-------------
[Sig removed by Admin: Signature can't exceed 40GB]



Replies:
Posted By: jpbro
Date Posted: 22 November 2010 at 1:02pm
I requested a Variant tag property in issue track some time ago (as it would be useful for me to attach a class to a CommandBarControl), but was told that Variants pose a problem with save/restore. Personally, I don't think we need to save/restore the Tag property if it were variant (the associated objects are only valid for each runtime session in my case), but that's life.

In any case, Oleg responded that the Parameter property is available to hold strings associated with a commandbar control. I haven't used it, but perhaps this is what you are looking for?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Jebo
Date Posted: 22 November 2010 at 1:06pm
Thank you!

Yes, I think the property "Parameter" should help already. A special "GUID" property (such as the object model of Microsoft Office) would be better, because as for example with '.find "{1Af5E........}" ' could access directly to an command-object.

-------------
[Sig removed by Admin: Signature can't exceed 40GB]



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