Print Page | Close Window

GroupRow, Hyperlink and markup

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=15129
Printed Date: 06 May 2024 at 5:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GroupRow, Hyperlink and markup
Posted By: crystyce
Subject: GroupRow, Hyperlink and markup
Date 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



Replies:
Posted By: mdoubson
Date 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?


-------------
Mark Doubson, Ph.D.


Posted By: crystyce
Date Posted: 09 September 2009 at 3:04am
Hi, i attached a test sample. Everything in DrawGroupRow seems to work fine.

uploads/20090909_030228_GroupMarkupTest.zip - 20090909_030228_GroupMarkupTest.zip

-------------
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008


Posted By: mdoubson
Date Posted: 09 September 2009 at 3:38pm
Good

-------------
Mark Doubson, Ph.D.


Posted By: crystyce
Date 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


Posted By: mdoubson
Date 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

-------------
Mark Doubson, Ph.D.


Posted By: crystyce
Date 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



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