Print Page | Close Window

Icons in Ribbon

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=7014
Printed Date: 18 June 2025 at 11:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons in Ribbon
Posted By: lexicon
Subject: Icons in Ribbon
Date Posted: 30 April 2007 at 11:11am
I can't understand how the icons work in ribbon sample
Where are they stored and how they're appear (i mean which command loads them)



Replies:
Posted By: jcollier
Date Posted: 01 May 2007 at 10:47am
Just add a CJ ImageManager (similar to ImageList).  Then add the icons to the image manager, giving them each a unique ID.

Then, when you create the buttons on the Ribbon, give the button id the same id as the corresponding icon.

Lastly, set the icons property of your CommandBars control = icons property of the imagemanager like so:  CommandBars.Icons = imCommandBar.Icons



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