Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - toolbar icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

toolbar icons

 Post Reply Post Reply
Author
Message
ahsan19 View Drop Down
Newbie
Newbie


Joined: 24 March 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ahsan19 Quote  Post ReplyReply Direct Link To This Post Topic: toolbar icons
    Posted: 24 March 2006 at 4:23pm
Hi

I have a toolbar with has 18x18 icons on it. I am setting the icon size like this:

pWebBar->SetIconSize(CSize(18,18));

However, the icons are not placed correctly on the toolbar. The second image falls onto the third button. How can I correct it? Here is an image of the toolbar:

http://i42.photobucket.com/albums/e322/ahsan19/sample.jpg

Thanks.
Jess
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: 24 March 2006 at 4:58pm

Sure you added icons in image manager incorrectly...

How you did it?

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ahsan19 View Drop Down
Newbie
Newbie


Joined: 24 March 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ahsan19 Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2006 at 5:04pm
This is how I added icons in the image manager:

XTPImageManager()->SetIcons(IDR_TOOLBAR_WEB, IDR_TOOLBAR_WEB_A);

Does this look okay?

Thanks.
Jessica
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: 24 March 2006 at 5:20pm

Check in xxx.rc file for IDR_TOOLBAR_WEB if it has correct size of buttons:

IDR_TOOLBAR_WEB TOOLBAR DISCARDABLE  18, 18
 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ahsan19 View Drop Down
Newbie
Newbie


Joined: 24 March 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ahsan19 Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2006 at 5:31pm
I replaced this line:
IDR_TOOLBAR_WEB TOOLBAR  16, 16

with this:
IDR_TOOLBAR_WEB TOOLBAR DISCARDABLE  18, 18

and now my application wont load. I clicked on the executable and nothing happened. I changed it back to 16,16, and it loaded fine but with incorrect icon placement on the toolbar.

Any ideas?

Thanks.
Jess
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: 24 March 2006 at 9:09pm
It just mean that bitmap for IDR_TOOLBAR_WEB must be changed for 18*18 icons too.
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.156 seconds.