Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Setting tooltip for CXTPReportGroupRow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting tooltip for CXTPReportGroupRow

 Post Reply Post Reply
Author
Message
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 226
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: Setting tooltip for CXTPReportGroupRow
    Posted: 09 May 2017 at 9:10am
Hi, 

I need to set the tooltip for a CXTPReportGroupRow to something else but its caption (which is sort of useless). 

It would be good if I could catch XTP_NM_REPORTTOOLTIPINFO or overloading CXTPReportControl::OnGetToolTipInfo for group rows. 

Right now it seems I have to overload CXTPReportControl::CreateRow where I return a new instance of

class MyCustomReportGroupRow_Batch : public CXTPBatchAllocObjT<MyCustomReportGroupRow, CXTPReportGroupRow_BatchData>
{
};

and finally implement MyCustomReportGroupRow::GetTooltip()...

sure there should be an easier way?
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (2) Thanks(2)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2017 at 4:40am
Hi;

This is the only solution for rel 17.0, but you can use CXTPReportGroupRow as the base class.
And don't forget to implement your own CreateGroupRow() function.
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.141 seconds.