Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - ToolTip on click
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ToolTip on click

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: ToolTip on click
    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.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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);

}
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.215 seconds.