Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolbar icon spacing, normal/hot states
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar icon spacing, normal/hot states

 Post Reply Post Reply
Author
Message
sandeepa View Drop Down
Groupie
Groupie


Joined: 10 June 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote sandeepa Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar icon spacing, normal/hot states
    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.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.