Print Page | Close Window

ToolTip on click

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14822
Printed Date: 14 July 2025 at 8:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ToolTip on click
Posted By: gmail
Subject: ToolTip on click
Date 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.



Replies:
Posted By: mdoubson
Date Posted: 24 July 2009 at 8:27am
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);

}


-------------
Mark Doubson, Ph.D.



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