![]() |
Adjust to the Large Icons |
Post Reply
|
| Author | |
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: Adjust to the Large IconsPosted: 15 October 2008 at 12:03pm |
|
In the MFC application with the Toolkit C++, on the Customize Box, if the Large Icon choice is selected, the icons on the toolbar will be increased to about 72% larger. My questions are:
Thanks, Frank |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 October 2008 at 4:31am |
|
Hi,
1. Set Size you need with pCommandBars->GetCommandBarsOptions()->szLargeIcon = CSize(...);
2. You can. Add additional bitmap and call
pCommandBars->GetImageManager()->SetIcons(nIDResourceToolBar, nIDResourceBitmap);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 October 2008 at 11:16am |
|
Thank you oleg for the info.
Frank
|
|
![]() |
|
FrankC
Groupie
Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 October 2008 at 2:07pm |
|
Hi Oleg,
This line will not work.
1. Set Size you need with pCommandBars->GetCommandBarsOptions()->szLargeIcon = CSize(...);
Neither the
pCommandBars->GetCommandBarsOptions()->szIcon = CSize(...);
Would you know when will these two lines work?
Thanks,
Frank |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 October 2008 at 4:59pm |
|
Hi Oleg,
I use pCommandBars->GetCommandBarsOptions()->szLargeIcons = CSize(...); and my icons is on control caption. how can I fix it ?!? Thanks in Advance, Best Regards. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 October 2008 at 5:40am |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 October 2008 at 3:41am |
|
Hi oleg,
I Extract my Icons with UINT nIDs[] = {IDM_HOMEPAGE, IDM_HIDE, IDM_PAGER, IDM_LOCK,IDM_HELP, IDM_ABOUTUS, IDM_OPTIONS, IDM_EXIT}; pCommandBars->GetImageManager()->SetIcons(IDB_MENUITEMS, nIDs, 8, CSize(48, 48), xtpImageNormal); and I call pCommandBars->GetCommandBarsOptions()->szLargeIcons = CSize(48, 48); before assign icons but my controls icons is on my controls captions. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 October 2008 at 7:02am |
|
Hi,
Can you attach screenshot ? or better modify our sample , reproduce it and attach here :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 October 2008 at 6:04pm |
|
Hi oleg,
Thanks for your responses as soon as possible,I can't upload via your web image uploader and I uploaded to tinypic http://tinypic.com/view.php?pic=2rnvi1u&s=4 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 October 2008 at 3:24am |
|
It looks like Ribbon - not simple toolbar. You can't use 48*48 for Ribbon :(
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
barobax
Senior Member
Joined: 07 May 2008 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 October 2008 at 6:37pm |
|
Hi oleg,
can I increase ribbon heigth ?, Thanks oleg for your answers. |
|
![]() |
|
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 |