Print Page | Close Window

Tooltip with Title an Description

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=17523
Printed Date: 01 May 2025 at 1:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltip with Title an Description
Posted By: Alex H.
Subject: Tooltip with Title an Description
Date Posted: 04 November 2010 at 12:28pm
I have activated this kind of tooltip for menu items. (ShowTitleAndDescription(TRUE))
Problem: Some menu items do not have Title AND Description in the Resource and for this case an oldstyle tooltip appears.

Question:
Is there a way to supply lets say an user defined description for that menu items?
Is there somehing like an callback or message for that?

Thanks for your help!



Replies:
Posted By: Oleg
Date Posted: 05 November 2010 at 1:20pm
Hi,

you can manually set it with pControl->SetDescription method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Alex H.
Date Posted: 08 November 2010 at 3:36am
Thank you for that information. I know that, but setting it with SetDesicription is almost the same as setting it in the resource to avoid that probem :-)
In the case of leaking description i would use the text of the menu item + title to create the tooltip.
Any other suggestions?


Posted By: Alex H.
Date Posted: 11 November 2010 at 10:28am
Hi Oleg!
Can I set the description (using pControl->SetDescription)  in an event that will be fired right before displaying the tooltip?


Posted By: Oleg
Date Posted: 12 November 2010 at 3:38am
Hi,

Please try WM_XTP_CONTROLSELECTED. 

// BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
//     //{{AFX_MSG_MAP(CMainFrame)
//     ON_MESSAGE(WM_XTP_CONTROLSELECTED, OnControlSelected)
//     //}}AFX_MSG_MAP
// END_MESSAGE_MAP()
//
// LRESULT CMainFrame::OnControlSelected(WPARAM wParam, LPARAM lParam)
// {
//     UNUSED_ALWAYS(lParam);
//     CXTPControl* pControl = (CXTPControl*)wParam;
//
//     return 0;
// }

only I'm not sure if its called before Tooltipcontext store tip.


-------------
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