Print Page | Close Window

ToolTip and HitTest

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=17835
Printed Date: 29 September 2024 at 12:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolTip and HitTest
Posted By: Pixbyte
Subject: ToolTip and HitTest
Date Posted: 05 February 2011 at 7:03am
Hello,

I use part of a Tooltip sample in my software.  There I use the "OnToolHitTest" function from the sample. My problem is, that if I move through a visible CommandBar Menu it will show the underlaying buttons tooltip, too. I think cause the "HitTest" is not blocked by the CommandBar Menu. 

So my question is, do anybody now how to optimize the "OnToolHitTest" function that it will block the Tooltip while a Commandbar Menu is visible?

Ocrana



Replies:
Posted By: Oleg
Date Posted: 05 February 2011 at 10:53am
Add in top of your method:

if (XTPMouseManager()->IsTrackedLock(NULL) || XTPMouseManager()->IsMouseLocked())
return -1;



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


Posted By: Pixbyte
Date Posted: 06 February 2011 at 7:55am
Thanks,
I work now with OnUninitCommandsPopup and OnInitCommandsPopup to know when a menu is active.
Ocrana



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