Print Page | Close Window

Tooltip Image

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13407
Printed Date: 23 June 2025 at 8:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltip Image
Posted By: ogreen
Subject: Tooltip Image
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: ogreen
Date 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?


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net