![]() |
how to set tooltip for a button(CXTPButton) on a d |
Post Reply
|
| Author | |
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
Topic: how to set tooltip for a button(CXTPButton) on a dPosted: 10 September 2008 at 12:22am |
|
hi
how to set tooltip for a button(CXTPButton) on a dialogbox?
do reply....
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 September 2008 at 12:45am |
|
Hi,
Check Samples\CommandBars\ToolTipContext sample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
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 {
...................
}
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 September 2008 at 1:00am |
|
Hi,
m_moduleContext is not CXTPButton. See sources of sample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
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??
|
|
![]() |
|
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 |