Name or Tag property needed! |
Post Reply |
Author | |
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
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(..)"). 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...! 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]
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
Jebo
Senior Member Joined: 27 October 2005 Location: Germany Status: Offline Points: 318 |
Post Options
Thanks(0)
|
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]
|
|
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 |