![]() |
Map a control ID to certain icon ID? |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 10 April 2009 at 4:37am |
Is it possible to map a certain control ID to a certain icon ID, so that it gets this icon whereever possible? I know I can call SetIconId(), but that is not always possible (e.g. you show a CMenu through XTResourceManager()).
Something like this:
SetIcons(controlID_list, iconID_list);
Is this possible?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can enable Actions and assign iconId to corresponded action.
See Actions sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
randallmking ![]() Newbie ![]() ![]() Joined: 23 September 2008 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I have been unable to get the Actions to work for IconID. The ActionsSampe for VB does not show an IconID sampe and if I add the code:
Commandbars.Actions(ID_FILE_NEW).IconID = ID_EDIT_UNDO, then the image is empry on the ID_FILE_NEW button and menu
When I attempt to use Actions with IconID in my program I get the error message:
"Object does not support this property or method"
But I can use Actions to change the other properties such as Tag or Enabled.
CommandBars.Actions.Add ID_CalcZone_Dropdown, "Calculation Zone", "Insert a Calculation Zone", "", "Calculation Zone"
'add Control in another function
CommandBars.Actions(ID_CalcZone_Dropdown).Enabled = False (this works)
CommandBars.Actions(ID_CalcZone_Dropdown).IconID = ID_CalcZone_Rectangle (this creates the error message) |
|
![]() |
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 |