Print Page | Close Window

Toolbar icon spacing, normal/hot states

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=5094
Printed Date: 03 July 2024 at 4:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar icon spacing, normal/hot states
Posted By: sandeepa
Subject: Toolbar icon spacing, normal/hot states
Date Posted: 19 September 2006 at 4:18pm
Hello,

See the attached picture for a better explanation of what I am trying to achieve.



All of my toolbar icons are contained in 2 32bit BMP files with alpha channels. toolbar_normal.bmp and toolbar_hot.bmp. I have a couple of questions.

1. How do I assign the normal and hot states in the toolkit?
2. How do I adjust the gap that codejock inserts between the icons. I would like to eliminate the gap between icons so that I can have a seamless look to the toolbar.

Thanks in advance.




Replies:
Posted By: Oleg
Date Posted: 20 September 2006 at 1:22am
Hello,
 
1. Call pToolBar->SetButtonSize(CSize(16, 16));
 
2.
pCommandBars->GetImageManager()->SetIcons(IDR_MAINFRAME, xtpImageNormal);
pCommandBars->GetImageManager()->SetIcons(IDR_MAINFRAME, IDR_MAINFRAME_HOT, xtpImageHot);


-------------
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