Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to add large icons for the dynamical toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add large icons for the dynamical toolbar

 Post Reply Post Reply
Author
Message
Howard Farseer View Drop Down
Groupie
Groupie


Joined: 30 September 2007
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Howard Farseer Quote  Post ReplyReply Direct Link To This Post Topic: How to add large icons for the dynamical toolbar
    Posted: 26 October 2008 at 8:20am
I've create a toolbar that is created dynamically with CXTPToolbar::GetControls()->Add(..)

I set the icon of its' buttons with pControl->SetIconId(nIndex). nIndex is the one I had added to the imaglist of XTPImageManager.
The question is: When the toolbar is shown as small icon the toolbar works fine but the icons disappears when the toolbar is shown as large icons.
How can I add large icons for the toolbar or let the toolbar to resize the small icons for use of large icons?
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: 27 October 2008 at 3:27am
Hi,
 
seems you have some additional code... have to resize it automatically.
Try don't call SetIconId but set Icons to ImageMaanger with id of buttons.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Howard Farseer View Drop Down
Groupie
Groupie


Joined: 30 September 2007
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Howard Farseer Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2008 at 11:17am
Hi,
Thank you. I'll have a try.
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.031 seconds.