Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - GroupRow, Hyperlink and markup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GroupRow, Hyperlink and markup

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


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Topic: GroupRow, Hyperlink and markup
    Posted: 07 September 2009 at 10:43am
Hi,

The Hyperlink markup tag works great in the 13.1.0 report control when using it with normal rows. But when using markup in a GroupRow, hyperlink doesn't work. The MouseClick event doesn't fire, and also triggers and setters do not work...
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008
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: 08 September 2009 at 6:50pm
Do you have a testcase? Please attach to check because function support it:
void CXTPReportGroupRow::SetCaption(LPCTSTR lpszCaption) {
.................................

XTPMarkupReleaseElement(m_pMarkupUIElement);

if (m_pControl && (m_pControl->GetMarkupContext()))

m_pMarkupUIElement = XTPMarkupParseText(m_pControl->GetMarkupContext(), m_strGroupText);

.................................

Did you tried to debug code for markup drawing in CXTPReportPaintManager::DrawGroupRow?
Back to Top
crystyce View Drop Down
Groupie
Groupie


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2009 at 3:04am
Hi, i attached a test sample. Everything in DrawGroupRow seems to work fine.

20090909_030228_GroupMarkupTest.zip
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008
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: 09 September 2009 at 3:38pm
Good
Back to Top
crystyce View Drop Down
Groupie
Groupie


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2009 at 7:24am
What i mean is that I could not figure out anything wrong with DrawGroupRow, not that hyperlink is working :( .
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008
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: 13 September 2009 at 2:03pm
Please look into function void CXTPReportRow::OnMouseMove(UINT nFlags, CPoint point) and you will see that it does not covered hyperlinks because function CXTPReportRecordItem* pItem = HitTest(point, &rcItem) return NULL CXTPReportRecordItem as GroupRow does not have it.
I confirmed Markup draw - e.g. using your sample - but not hyperlink. You can try to cover this case yourself and let's see your results
please
Back to Top
crystyce View Drop Down
Groupie
Groupie


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2009 at 9:04am
I found a way around this:

Change CXTPReportControl::OnWndMsg like this:

if (pRow)
          {
               CXTPReportRecordItem* pItem = pRow->HitTest(ptMouse);
               if (pItem && pItem->GetMarkupUIElement())
               {
                    bRelay = TRUE;
                    if (XTPMarkupRelayMessage(pItem->GetMarkupUIElement(), message, wParam, lParam, pResult))
                         return TRUE;
               }
               //enable markup mouse move for groups
               else
                    if (pRow->IsGroupRow())
                    {
                         bRelay = TRUE;
                         if (XTPMarkupRelayMessage(((CXTPReportGroupRow*)pRow)->m_pMarkupUIElement, message, wParam, lParam, pResult))
                              return TRUE;
                    }
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008
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.156 seconds.