Print Page | Close Window

Empty report text with links

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=23672
Printed Date: 21 November 2024 at 7:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Empty report text with links
Posted By: Fredrik
Subject: Empty report text with links
Date Posted: 04 July 2018 at 5:48am
I have a report control and when there are no items I'd like to display the text "There are no items to show. Click here to do awesome stuff" using GetPaintManager()->m_strNoItems.

How can I make the link work? It does support markup, but it cannot be clicked on. 

My current workaround is to create a header record with markup. 

Best regards,


-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0



Replies:
Posted By: Fredrik
Date Posted: 21 May 2024 at 1:23pm
I'd like to bring this issue up again - has anyone gotten links in the grid control to work using markup only (not using CXTPGridHyperlink)?

-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0


Posted By: markr
Date Posted: 21 May 2024 at 4:57pm
Haven't tried it with report control, but what happens if you just add an event handler to the control's markup context? Is the delegate not firing?


Posted By: Fredrik
Date Posted: 22 May 2024 at 2:32am
Thanks, yes I have tried that. It is like the m_strNoItems text is read-only. But I see that  CXTPGridControl::DrawNoItems(CDC* pDC, const CRect& rcClient) is virtual so perhaps something can be done with that.


-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0



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