![]() |
|
Post Reply
|
| Author | |
ione
Groupie
Joined: 25 November 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Topic: Tooltip icon different from iconPosted: 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)
Quote Reply
Posted: 28 January 2010 at 4:44am |
|
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)
Quote Reply
Posted: 27 February 2010 at 7:37am |
|
I really need this too!
|
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2010 at 1:49am |
|
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)
Quote Reply
Posted: 01 March 2010 at 3:29am |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2010 at 2:11pm |
|
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)
Quote Reply
Posted: 02 March 2010 at 3:36am |
|
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)
Quote Reply
Posted: 05 March 2010 at 6:16am |
|
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 |