Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Empty report text with links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Empty report text with links

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


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: Empty report text with links
    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
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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
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.109 seconds.