RIBBON Query: to support 24*22 size bitmap |
Post Reply |
Author | |
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Posted: 02 December 2010 at 6:34am |
Hi All;
This query is regarding the RIBBON behaviour with images. by default RIBBON takes 16*16 bmp for small image 32*32 bmp for large image i need to use the 24*22 (width*height) bmp image in RIBBON , it gets blurred . I can't made all my image to 32*32. Please tell me the procedure , by which i add the image (24*22) size without blur thnx in advance |
|
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
|
Hi ;
Let me make my problem short and more understandable. In my application:- CXTPRibbon having CXTPControl button. CXTPControl having style "xtpButtonIconAndCaptionBelow". It will make the CXTPControl icon as (32*32) size and put the Caption below this. *I am using (24*22) bitmap : hence they stretch in 32*32 size and get blurred. How can i use (24*22) bitmap ? Either its possible ? SetIconSize - not working. XTPPaintmanager and XTPImagemanager can't help me out. thnx |
|
Daelen
Newbie Joined: 09 December 2010 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Hi there. I experienced the problem just like yours except for my icons have a size of 36x36. This helped me:
CommandBars.Options.SetIconSize True, 36, 36 CommandBars.Options.LargeIcons = True And in yours case: CommandBars.Options.SetIconSize True, 24, 22 |
|
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
|
Hi Oleg;
Please don't keep me waiting for so Long..... Please see me above issue.... How can we Attach the 24*22 size Bitmap in the "xtpConrolButton" ? Is it possible or not ? Thnx in Advance |
|
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
|
Hi;
If we set the Style "xtpButtonIconAndCaptionBelow" in CXTPControl object. pXtpControl->SetStyle(xtpButtonIconAndCaptionBelow); Now , Big Button have been displayed . That Button having 32*32 icon + Text below. I have both the Big Button and the Normal button in a Ribbon. hence to place the 24*22 icon on the big button i use : pXtpControl->SetIconSize(CSize(24,22)); But this can't make the icon as 24*22 i=on Big button. |
|
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
|
Hi oleg;
I am adding "CXTPControlPopup" control with control type "xtpControlSplitButtonPopup". Then i set the XTPButtonStyle as "xtpButtonIconAndCaptionBelow" Then i add icon on Button : pControl->GetImageManager()->SetIcon(hIcon,cmdIDBtn); The icon of size 32*32 coming correct . But if i wish to show the 24*22 sized icon , it get blurred/poor quality. How can we set the XTPCommandBar --> so that large icon size will be 24*22 and small icon size will be 16*15. Please suggest any solution. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Sorry all icons should be same size. You can open in editor and add transparent borders around to make it 32*32.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
|
Thanx Oleg
Now it works. |
|
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 |