Toolbar icon spacing, normal/hot states |
Post Reply |
Author | |
sandeepa
Groupie Joined: 10 June 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |