![]() |
CXTPToolBar and ToolTips |
Post Reply ![]() |
Author | |
Slamma ![]() Newbie ![]() Joined: 22 August 2008 Location: United States Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Slamma ![]() Newbie ![]() Joined: 22 August 2008 Location: United States Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
I will rebuild the toolkit. Thanks oleg.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |