Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to set tooltip for a button(CXTPButton) on a d
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to set tooltip for a button(CXTPButton) on a d

 Post Reply Post Reply
Author
Message
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Topic: how to set tooltip for a button(CXTPButton) on a d
    Posted: 10 September 2008 at 12:22am
hi
how to set tooltip for a button(CXTPButton) on a dialogbox?
do reply....
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: 10 September 2008 at 12:45am
Hi,
Check Samples\CommandBars\ToolTipContext  sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 12:51am
hi
oleg we have gone through ur appication but we didnt get it
please give the code
its urgent
waiting 4 reply
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 4:29am
i have written these 2 functions from ur sample application but these function are not getting called
what should i do? what is missing?
 

ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT, 0, IDC_MYBUTTON3, OnToolTipText)

 
 
BOOL CEmailDlgX::OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult)
{
.........
}
 
 

INT_PTR CEmailDlgX::OnToolHitTest(CPoint point, TOOLINFO* pTI) const

{
...................
}
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: 10 September 2008 at 8:59am

Hi,

copy
 EnableToolTips();
 
 m_moduleContext.SetModuleToolTipContext();
 m_moduleContext.SetStyle(xtpToolTipMarkup);
 m_moduleContext.SetMaxTipWidth(200);
 
from sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 10:56pm
hi thanx 4 reply
i have written this code....
 
CXTPButton m_sendMail;

m_sendMail.SetModuleToolTipContext();

m_sendMail.SetStyle(xtpToolTipMarkup);

m_sendMail.SetMaxTipWidth(200);

but i am getting these errors.....
 
'SetStyle' : is not a member of 'CXTPButton'
error C2039: 'SetModuleToolTipContext' : is not a member of 'CXTPButton'
error C2039: 'SetMaxTipWidth' : is not a member of 'CXTPButton'
what should i do?
 
plz reply
 
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: 11 September 2008 at 1:00am
Hi,
m_moduleContext is not CXTPButton. See sources of sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2008 at 1:32am
hi thanx oleg
but what i need to do to have tooltip for CXTPButton which is on my dialog??
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.063 seconds.