![]() |
Tooltip Image |
Post Reply
|
| Author | |
ogreen
Newbie
Joined: 13 February 2009 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Tooltip ImagePosted: 13 February 2009 at 7:01pm |
|
How do you include an image in the tooltip for the system menu? I have looked at the Ribbon Sample and can't figure it out. I have the Application icon that is displayed but I want a different image displayed in the tooltip.
BTW- I have been looking at the CreateRibbonBar() function of MainFrm. Thanks in advance, Owen |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 February 2009 at 1:48am |
|
Hi, Do you load this image ?
In sample this line load image for IDB_GEAR tooltip:
UINT uiGroupsTip[] = {ID_GROUP_CLIPBOARD_OPTION, ID_GROUP_FONT_OPTION, ID_GROUP_PARAGRAPH_OPTION, ID_GROUP_STYLES_OPTION, IDB_GEAR};
pCommandBars->GetImageManager()->SetIcons(IDB_GROUPOPTIONTOOLTIP, uiGroupsTip, _countof(uiGroupsTip), CSize(100, 130)); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ogreen
Newbie
Joined: 13 February 2009 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 February 2009 at 11:37am |
|
IDB_GEAR is used in multiple places. In the code you posted it is used from the GroupOptionToolTip.png. It also uses the shiny-gear.png The shiny-gear.png is used as the Application icon. How can I just get my png to be used in the tooltip window and another png to be the application icon?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 February 2009 at 1:22am |
|
it's like our sample works. Pleae check its code. IDB_GROUPOPTIONTOOLTIP contains bitmap for tooltip: UINT uiGroupsTip[] = {ID_GROUP_CLIPBOARD_OPTION, ID_GROUP_FONT_OPTION, ID_GROUP_PARAGRAPH_OPTION, ID_GROUP_STYLES_OPTION, IDB_GEAR};
pCommandBars->GetImageManager()->SetIcons(IDB_GROUPOPTIONTOOLTIP, uiGroupsTip, _countof(uiGroupsTip), CSize(100, 130)); and IDB_GEAR for application icon :
UINT uCommand = {IDB_GEAR};
pCommandBars->GetImageManager()->SetIcons(IDB_GEAR, &uCommand, 1, CSize(0, 0), xtpImageNormal); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |