Print Page | Close Window

tooltip notification

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=9415
Printed Date: 14 November 2025 at 2:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: tooltip notification
Posted By: Ping Huang
Subject: tooltip notification
Date Posted: 25 January 2008 at 11:17am
Hi:
Does codejock send any notification when a tooltip is displayed?
 
Our application needs to perform certain action when certain number of tooltips has been displayed, we need to be notified when tooltip is displayed to be able to do it.
 
I tried to subclass from CXTPToolTipContext and create my own tooltip
that's subclassed from CXTPToolTipContext::COffice2007ToolTip, just so I can override the OnPaint function to detect that tooltip is displayed, but I got compiling error.
 
here is my code:

class __declspec(FUNC_DECL) PingOffice2007ToolTip : public CXTPToolTipContext::COffice2007ToolTip

{

// codejock does not send out tooltip notification.

// Hence this class ...

DECLARE_DYNAMIC(PingOffice2007ToolTip)

public:

//{{AFX_MSG(PingOffice2007ToolTip)

afx_msg void OnPaint();

//}}AFX_MSG

DECLARE_MESSAGE_MAP()

public:

PingOffice2007ToolTip(CXTPToolTipContext*);

virtual ~PingOffice2007ToolTip();

};

Here is the compiling error:

3>z:\include\ucontrol.h(745) : error C2504: 'CXTPToolTipContext::COffice2007ToolTip' : base class undefined

and the reason is CXTPToolTipContext::COffice2007ToolTip'  is defined inside y:\Codejock\Source\Common\XTPToolTipContext.cpp that I cannot include from:
 
class CXTPToolTipContext::COffice2007ToolTip : public CXTPToolTipContextToolTip{
public:
COffice2007ToolTip(CXTPToolTipContext* pContext)
: CXTPToolTipContextToolTip(pContext
{}
void DrawBackground(CDC* pDC, TOOLITEM* /*lpToolInfo*/, CRect rc){...}
};
 
Please advise.
 
-Ping



Replies:
Posted By: Oleg
Date Posted: 28 January 2008 at 2:07pm
Hello,
 
You can only make CXTPToolTipContextToolTip as base class. Toolkit don't export COffice2007ToolTip class. Create class derived from CXTPToolTipContextToolTip  but copy code from COffice2007ToolTip.


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


Posted By: Ping Huang
Date Posted: 28 January 2008 at 2:41pm
If I copy code, then I need to copy code every time codejock modifies the code that I copy?


Posted By: Oleg
Date Posted: 28 January 2008 at 2:45pm
once. in 12.0 release COffice2007ToolTip will be removed at all. it will be only XTP_TTS_OFFICE2007FRAME flag for CXTPToolTipContextToolTip  class.

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


Posted By: Ping Huang
Date Posted: 28 January 2008 at 2:52pm
what about CHTMLToolTip?


Posted By: Oleg
Date Posted: 29 January 2008 at 7:53am

Hi,

For next release we will add TTN_SHOW notification support.


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


Posted By: Simon HB9DRV
Date Posted: 29 January 2008 at 8:05am
Originally posted by oleg oleg wrote:

For next release we will add TTN_SHOW notification support.
That will be great, I can create my quite complex tooltips at runtime :-)


-------------
Simon HB9DRV



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