Print Page | Close Window

Adjust to the Large 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=12445
Printed Date: 23 June 2025 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adjust to the Large Icons
Posted By: FrankC
Subject: Adjust to the Large Icons
Date Posted: 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:

  1. Can the size of large icon be adjusted, say a little smaller than the large ones?
  2. Can the software load a separate toolbar for the large icons, instead of stretch the smaller ones and thus looks smoother?

 

Thanks,

Frank




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


Posted By: FrankC
Date Posted: 16 October 2008 at 11:16am
Thank you oleg for the info.
 
Frank


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


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


Posted By: Oleg
Date Posted: 23 October 2008 at 5:40am
Hi,
https://forum.codejock.com/member_profile.asp?PF=4505&FID=112 - FrankC   have to work.
 
https://forum.codejock.com/member_profile.asp?PF=4159&FID=112 - barobax be sure you have icons with same size.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


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


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


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


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


Posted By: barobax
Date Posted: 27 October 2008 at 6:37pm
Hi oleg,
can I increase ribbon heigth ?, Thanks oleg for your answers.



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