![]() |
ToolTip on click |
Post Reply ![]() |
Author | |
gmail ![]() Groupie ![]() Joined: 24 February 2008 Status: Offline Points: 45 |
![]() ![]() ![]() ![]() ![]() Posted: 24 July 2009 at 7:45am |
How can I show ToolTip (which are enabled in my CXTPReportControl) when user clicks on item (not automatically by hovering for XX delay time), I need to force showing of ToolTip window only on click.
|
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
use notification and add your own handler
ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick)
void CReportSampleView::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * /*result*/){ XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct; if (!pItemNotify->pColumn) return; if (!pItemNotify->pRow) return;// TRACE(_T("Click on row %d, col %d\n"), // pItemNotify->pRow->GetIndex(), pItemNotify->pColumn->GetItemIndex()); // use smth similar to: pRow->ShowToolTip(point, &m_wndTip); } |
|
![]() |
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 |