ImageManagerIcons question -- image by index |
Post Reply |
Author | |
MadRiver
Groupie Joined: 21 August 2008 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
Posted: 01 December 2008 at 12:46pm |
Is it possible to get an image by index, and then get the command ID associated with that image?
|
|
Xtreme CommandBars ActiveX v 12.1.0
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
The image manager does not know which commands use them. What are you needing this for?
|
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
I believe your only option would be to loop through the CommandBarControls collection and check each control to see if the icon ID matches your image index. I guess you could also create your own data structure to store the information. It would require more code but would probably be more efficient.
|
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
MadRiver
Groupie Joined: 21 August 2008 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Thanks for the reply.
I am using your second approach: when we load the images we populate a map of image index->command id. Background: Users can add toolbar buttons via script; in the script they can select an icon to use by specifying its index in our default set of images. |
|
Xtreme CommandBars ActiveX v 12.1.0
|
|
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 |