Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPToolTipContext problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolTipContext problem

 Post Reply Post Reply
Author
Message Reverse Sort Order
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolTipContext problem
    Posted: 18 September 2006 at 12:17pm
Thank you very much!! =)
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: 18 September 2006 at 11:50am
.. And anyway remove EnableToolTips...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 18 September 2006 at 11:49am
Hello,
 
yes, problem in TooltipContext that was not designed to work with full window. as workaround change:
 
INT_PTR CXTSimpleButton::OnToolHitTest(CPoint point, TOOLINFO* pTI) const
{
 ASSERT_VALID(this);
 ASSERT(::IsWindow(m_hWnd));
 int nID = GetDlgCtrlID();
 CXTPClientRect rc(m_hWnd);
 rc.DeflateRect(3, 3);
 if (!rc.PtInRect(point))
  return -1;
 CXTPToolTipContext::FillInToolInfo(pTI, m_hWnd, rc, nID, m_strToolTip, m_strToolCaption, m_strToolTip);
 return nID;
}
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2006 at 10:41am

If I remove the call to EnableToolTips, the tooltipcontext disappears too. Even if I remove the call, the office2007 tips are never shown once I have pushed the button.

So, I am sure that EnableToolTips has nothing to do with the disappearance of the tooltips.
 
Any ideas? Thanks!
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: 18 September 2006 at 3:10am

Hi,

Don't call EnableToolTips if you use tooltipcontext.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2006 at 3:34pm

I made a button, derived from CXTButton, with 2007-styled tooltips. It works as expected until I click the button. After that, the tooltip is the same old yellow rectangle again... what's causing this?

Here's my button class:
http://www.bostream.nu/krisse/XTSimpleButton.zip
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.172 seconds.