Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Icons Object
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons Object

 Post Reply Post Reply
Author
Message
Luca View Drop Down
Newbie
Newbie
Avatar

Joined: 04 July 2005
Location: Italy
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Luca Quote  Post ReplyReply Direct Link To This Post Topic: Icons Object
    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
Back to Top
Luca View Drop Down
Newbie
Newbie
Avatar

Joined: 04 July 2005
Location: Italy
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Luca Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2005 at 4:07am
Sorry... my mistake!!!!
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2005 at 5:56am
What was the problem you were having, and how did you fix it?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2005 at 6:00am

switch this option:

CommandBars.Options.UseSharedImageList

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.