Print Page | Close Window

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

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=12121
Printed Date: 14 September 2025 at 6:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to set tooltip for a button(CXTPButton) on a d
Posted By: Pariksh*t
Subject: how to set tooltip for a button(CXTPButton) on a d
Date Posted: 10 September 2008 at 12:22am
hi
how to set tooltip for a button(CXTPButton) on a dialogbox?
do reply....



Replies:
Posted By: Oleg
Date Posted: 10 September 2008 at 12:45am
Hi,
Check Samples\CommandBars\ToolTipContext  sample.


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


Posted By: Pariksh*t
Date 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


Posted By: Pariksh*t
Date 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

{
...................
}


Posted By: Oleg
Date 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


Posted By: Pariksh*t
Date 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
 


Posted By: Oleg
Date Posted: 11 September 2008 at 1:00am
Hi,
m_moduleContext is not CXTPButton. See sources of sample.


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


Posted By: Pariksh*t
Date 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??



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