Print Page | Close Window

How to dynamically update CXTPTooltipContext

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=6525
Printed Date: 03 March 2025 at 10:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to dynamically update CXTPTooltipContext
Posted By: mgampi
Subject: How to dynamically update CXTPTooltipContext
Date 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: Oleg
Date Posted: 28 February 2007 at 1:19am

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


Posted By: mgampi
Date Posted: 28 February 2007 at 7:41am
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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: Oleg
Date Posted: 28 February 2007 at 9:28am
Afraid only to modify sources.
 
see fow CXTPToolTipContextToolTip::SetVisibleTool method works.


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


Posted By: mgampi
Date Posted: 28 February 2007 at 9:57am
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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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