Print Page | Close Window

CXTTipWindow bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3699
Printed Date: 10 November 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTipWindow bug
Posted By: hpesata
Subject: CXTTipWindow bug
Date Posted: 24 February 2006 at 3:38am
Hi!

XTP 9.70

I realized, that when a CXTTipWindow based tooltip window is to close to the screen border, the tooltip isnt always displayed if m_rectTipArea is used.

m_rcScreenWindow gets modified in the case that the tooltip window is exceeding the screen area within InitializeSize() but m_rectTipArea remains the same.

therefore the code within OnMouseMove() doesnt work correctly because point is relative to the modified position of the tipwindow and is used with the unmodified m_rectTipArea. Thats why the tooltip window gets hidden ALTOUGH the mouse cursor is within the tiparea:

CXTTipWindow::OnMouseMove(UINT nFlags, CPoint point)
{
    if (!m_rectTipArea.IsRectNull() && !m_rectTipArea.PtInRect(point))
        HideTipWindow();
}

I need a possibility to solve this and would appreciate any commentd on how to fix this problem!

regards,
Hans




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