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

CXTPToolBar and ToolTips

 Post Reply Post Reply
Author
Message
Slamma View Drop Down
Newbie
Newbie


Joined: 22 August 2008
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slamma Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolBar and ToolTips
    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
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: 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
Back to Top
Slamma View Drop Down
Newbie
Newbie


Joined: 22 August 2008
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slamma Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2009 at 1:11pm
I will rebuild the toolkit.  Thanks oleg.
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.046 seconds.