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

Setting Icons on toolbar

 Post Reply Post Reply
Author
Message
rdtcgriffin View Drop Down
Newbie
Newbie


Joined: 18 March 2004
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdtcgriffin Quote  Post ReplyReply Direct Link To This Post Topic: Setting Icons on toolbar
    Posted: 04 April 2004 at 11:18pm

Hello.

How exactly do you assign icons to toolbars?

I checked the MDISample and tried to create a similar project, but my toolbar just have texts and no icons.

I read somewhere that you need an XCB file. But how exactly do you make and use it?

Any help will be greatly appreciated.

Thanks

Rommel

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2004 at 5:21am
Add them to an images list and assign that imagelist to the commandbar.  Use the AddImageList or AddIconHandle method to add images.  You can read the preliminary documentation for commandbars to see all of the details.  Sounds like you are forgetting to assign the Tag value in the imagelist, the tag value must be the same value you assign the control it (or iconId).
Back to Top
rdtcgriffin View Drop Down
Newbie
Newbie


Joined: 18 March 2004
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdtcgriffin Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2004 at 8:37pm

Ah thank you. It was so simple!

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.188 seconds.