Tooltip icon different from icon |
Post Reply |
Author | |
ione
Groupie Joined: 25 November 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 26 January 2010 at 12:17pm |
Hi, I need a CXTPControlPopup displaying a tooltip icon different from its icon. Is it possible? I need it for System Button on Ribbon.
Thank you.
|
|
ione
Groupie Joined: 25 November 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Hi, maybe this picture could explain what I mean:
System button displays Windows logo while tooltip displays another picture.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
I really need this too!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just set bigger image for same Id - RibbonSample has it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ione
Groupie Joined: 25 November 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Actually, my RibbonSample doesn't have it. (ToolkitPro 11.1.3) I've tried, but it doesn't work. Main button shows the large image. This is my new code:
pControlFile->GetCommandBar()->SetIconSize(CSize(32, 32)); pControlFile->SetIconId(ID_MAINBUTTON);
UINT uCommand = {ID_MAINBUTTON}; pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, CSize(32, 32), xtpImageNormal); pCommandBars->GetImageManager()->SetIcons(IDB_GEAR_LARGE, &uCommand, 1, CSize(96, 96), xtpImageNormal); |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Not sure about 11.1.3... try then pToolTipContext->ShowImage + some non zero base offset and set each icon to Id+thisOffset.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ione
Groupie Joined: 25 November 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Hi Oleq, thank you very much. It works!
My problem here is that this offset is applied to all options in the Ribbon, since pTooltipContext is owned by pCommandBars.
Is there any way to have different images for icon and tooltip just for the main system button, having the same icon id for the rest of button-tooltips?
|
|
ione
Groupie Joined: 25 November 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Hi, already solved the isue.
Just replace the icon size to be loaded in DrawRibbonFrameSystemButton (ICON_SMALL).
This way the system button displays small icon while tooltip displays the big one.
|
|
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 |