![]() |
tooltip notification |
Post Reply
|
| Author | |
Ping Huang
Newbie
Joined: 25 January 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: tooltip notificationPosted: 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_MSGDECLARE_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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ping Huang
Newbie
Joined: 25 January 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ping Huang
Newbie
Joined: 25 January 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 January 2008 at 2:52pm |
|
what about CHTMLToolTip?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 January 2008 at 7:53am |
|
Hi, For next release we will add TTN_SHOW notification support.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV
Senior Member
Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 January 2008 at 8:05am |
That will be great, I can create my quite complex tooltips at runtime :-)
|
|
|
Simon HB9DRV
|
|
![]() |
|
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 |