Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Tooltip Image
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltip Image

 Post Reply Post Reply
Author
Message
ogreen View Drop Down
Newbie
Newbie


Joined: 13 February 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ogreen Quote  Post ReplyReply Direct Link To This Post Topic: Tooltip Image
    Posted: 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ogreen View Drop Down
Newbie
Newbie


Joined: 13 February 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ogreen Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.