How to dynamically update CXTPTooltipContext |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
Posted: 27 February 2007 at 6:27pm |
Hi;
I want to use CXTPTooltipContext to display tooltips in my own CWnd derived class. The window has content that is updated in OnTimer() functions while a tooltip is visible. The tooltip should reflect the changes made to the window.
I was looking for something like SetTooltipText() but could not find any function like that.
So, does anyone know how to dynamically change the content of the tooltip while the tip window is visible?
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, You can try to override it, and call
ti.lpszText ==..;
m_pToolTip->SendMessage(TTM_UPDATETIPTEXT, 0, (LPARAM)&ti);
m_pToolTip->Invaidate(FALSE); but it will not resize tooltip to match new text.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Hi Oleg,
thanks for your reply! But now, could you give me a hint, how I could resize the tip window to react on different text lengths?
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Afraid only to modify sources.
see fow CXTPToolTipContextToolTip::SetVisibleTool method works.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Hi Oleg;
modifying source is always very bad when updates come in mind.
Nevertheless I'll give your suggestions a try. Perhaps I have to write my own tooltip window class and forgo your classes.
Perhaps you could put this issue on your internal feature request list?
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
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 |