Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Name or Tag property needed!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Name or Tag property needed!

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


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Topic: Name or Tag property needed!
    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]
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post 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]
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.156 seconds.