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

tooltip notification

 Post Reply Post Reply
Author
Message
Ping Huang View Drop Down
Newbie
Newbie


Joined: 25 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ping Huang Quote  Post ReplyReply Direct Link To This Post Topic: tooltip notification
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
Ping Huang View Drop Down
Newbie
Newbie


Joined: 25 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ping Huang Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
Ping Huang View Drop Down
Newbie
Newbie


Joined: 25 January 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ping Huang Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2008 at 2:52pm
what about CHTMLToolTip?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 29 January 2008 at 7:53am

Hi,

For next release we will add TTN_SHOW notification support.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
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.055 seconds.