Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to change color and size on "ReportHyperlink"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change color and size on "ReportHyperlink"

 Post Reply Post Reply
Author
Message
question View Drop Down
Newbie
Newbie


Joined: 18 October 2008
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote question Quote  Post ReplyReply Direct Link To This Post Topic: How to change color and size on "ReportHyperlink"
    Posted: 14 January 2009 at 11:45am
How can i change the color and font size on hyperlink in a report control(CTPReportControl)?

I have bought xtreme toolkit before,Is there anyone can help me???
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: 14 January 2009 at 1:35pm
I don't thinks we have interface to change color
void CXTPReportPaintManager::RefreshMetrics(){

RefreshXtremeColors();

m_clrHighlightText.SetStandardValue(GetXtremeColor(COLOR_HIGHLIGHTTEXT));

m_clrHyper.SetStandardValue(RGB(0, 0, 0xFF));

THIS 2 COLORS USED for hyperlinking. If you have a source - I can do it. If not - we can consider expose access win some interface
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: 14 January 2009 at 4:02pm
I was wrong in term of ability to change. As all this vars - public, you can use in MFC simple call I tested in our ReportSample app

m_wndReport.GetPaintManager()->m_clrHighlightText = RGB(255,0,255);

m_wndReport.GetPaintManager()->m_clrHyper = RGB(255,0,0);

Back to Top
question View Drop Down
Newbie
Newbie


Joined: 18 October 2008
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote question Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2009 at 12:28pm
Thanks for your help,now it works:)
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.043 seconds.