Print Page | Close Window

toolbar icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3869
Printed Date: 28 September 2024 at 11:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: toolbar icons
Posted By: ahsan19
Subject: toolbar icons
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: ahsan19
Date 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


Posted By: Oleg
Date 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


Posted By: ahsan19
Date 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


Posted By: Oleg
Date 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



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