Print Page | Close Window

Setting Icons on toolbar

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=599
Printed Date: 11 December 2024 at 8:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting Icons on toolbar
Posted By: rdtcgriffin
Subject: Setting Icons on toolbar
Date 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

 




Replies:
Posted By: SuperMario
Date 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).


Posted By: rdtcgriffin
Date Posted: 05 April 2004 at 8:37pm

Ah thank you. It was so simple!




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