Print Page | Close Window

CXTPToolBar and ToolTips

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=13521
Printed Date: 14 May 2025 at 1:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar and ToolTips
Posted By: Slamma
Subject: CXTPToolBar and ToolTips
Date Posted: 27 February 2009 at 6:07pm

Hey guys,

In the application I'm working on I've got a CXTPToolBar located directly above a 3D viewport.  When you hover over the icons in the toolbar a tooltip will appear.  Unfortunately, the tooltop appears below the mouse pointer and is hovering over the 3D viewport which causes it to flicker.

I think the easiest solution for this particular situation would be to have the tooltips appear to the right of the icon/mouse pointer so that they aren't so low as to hover over the 3D viewport.  Although if anyone has another potential solution, I'm flexibile.

My attempt to implement this was to override CXTPToolBar::OnWndMsg and call FilterToolTipMessage() with an adjusted tooltip location, but was unsuccessful.

I'm not exactly sure how to solve my issue but it would be great to be able to enable tooltips for my toolbar because icons without a description just don't cut it sometimes.

Thx



Replies:
Posted By: Oleg
Date Posted: 02 March 2009 at 12:28am
Hi,
 
You can patch CXTPToolTipContextToolTip::SetVisibleTool method and rebuild toolkit.
change
rcToolTip.SetRect(pt.x, pt.y + nCursorHeight, pt.x + sz.cx, pt.y + nCursorHeight + sz.cy);
line to position you need.


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


Posted By: Slamma
Date Posted: 02 March 2009 at 1:11pm
I will rebuild the toolkit.  Thanks oleg.



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