Print Page | Close Window

Icons Object

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2510
Printed Date: 07 July 2024 at 7:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons Object
Posted By: Luca
Subject: Icons Object
Date 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 . But in another project (I don't understand why!!!), the object CommandBars.Icons is nothing????? I use the same command:

- 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



Replies:
Posted By: Luca
Date Posted: 05 July 2005 at 4:07am
Sorry... my mistake!!!!


Posted By: gshawn
Date Posted: 05 July 2005 at 5:56am
What was the problem you were having, and how did you fix it?


Posted By: Oleg
Date Posted: 05 July 2005 at 6:00am

switch this option:

CommandBars.Options.UseSharedImageList



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net