Print Page | Close Window

Change tooltip text before tooltip show

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=2715
Printed Date: 06 October 2024 at 1:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change tooltip text before tooltip show
Posted By: jimmy
Subject: Change tooltip text before tooltip show
Date Posted: 12 August 2005 at 7:04am
Hello,

How can i change tooltip text, before tooltip is show.
I known with pControl->SetTooltip i can set it.
But i will set it before Tooltip is show.
At this position i will change it.

CXTPCommandBar::OnToolHitTest(CPoint point, TOOLINFO* pTI) const
But here is now way tohook into.

How can i do this.

    Jimmy



Replies:
Posted By: Oleg
Date Posted: 12 August 2005 at 2:37pm

so you need dynamic tooltips... for all controls or some?

if only for one - override CXTPControl::GetTooltip

if all - create custom Toolbar class; call pCommandBars->SetToolBarClass to use it, override OnToolHitTest.



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



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