Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to dynamically update CXTPTooltipContext
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to dynamically update CXTPTooltipContext

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: How to dynamically update CXTPTooltipContext
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2007 at 9:28am
Afraid only to modify sources.
 
see fow CXTPToolTipContextToolTip::SetVisibleTool method works.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.