Tooltip with Title an Description |
Post Reply |
Author | |
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
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! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
you can manually set it with pControl->SetDescription method.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
|
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? |
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
|
Hi Oleg!
Can I set the description (using pControl->SetDescription) in an event that will be fired right before displaying the tooltip? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
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 |