![]() |
Icons Object |
Post Reply ![]() |
Author | |
Luca ![]() Newbie ![]() ![]() Joined: 04 July 2005 Location: Italy Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 04 July 2005 at 11:30am |
I'm trying to use resource dll for store all icons that I'm using in the toolbars.
![]() I have try this code in a empty project: I start from a designed toolbar called standard.xcb and after I add other toolbars: CommandBars1.LoadDesignerBars ("Standard.xcb") Set toolbarNew = CommandBars1.Add("Prova", xtpBarTop) Set btnNew = toolbarNew.Controls.Add(xtpControlButton, ID_TEST, "Prova") Call CommandBars1.Icons.AddIcon(resConcept.GetPictureResource("co n_tro"), ID_TEST, xtpImageNormal) This work fine ![]() - LoadDesignerBars - LoadStateFromString - Add new CommandBar - Add new Control - Add the icon to CommandBar.Icons --> ERROR because Icons is nothing Can you help me??? ![]() Thanks. Bye. Luca |
|
![]() |
|
Luca ![]() Newbie ![]() ![]() Joined: 04 July 2005 Location: Italy Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Sorry... my mistake!!!!
|
|
![]() |
|
gshawn ![]() Senior Member ![]() Joined: 04 October 2004 Status: Offline Points: 227 |
![]() ![]() ![]() ![]() ![]() |
What was the problem you were having, and how did you fix it?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
switch this option: CommandBars.Options.UseSharedImageList |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |