toolbar icons |
Post Reply |
Author | |
ahsan19
Newbie Joined: 24 March 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Sure you added icons in image manager incorrectly... How you did it?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ahsan19
Newbie Joined: 24 March 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
ahsan19
Newbie Joined: 24 March 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
It just mean that bitmap for IDR_TOOLBAR_WEB must be changed for 18*18 icons too.
|
|
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 |