GroupRow, Hyperlink and markup |
Post Reply |
Author | |
crystyce
Groupie Joined: 19 August 2008 Location: Romania Status: Offline Points: 15 |
Post Options
Thanks(0)
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 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
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?
|
|
crystyce
Groupie Joined: 19 August 2008 Location: Romania Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Good
|
|
crystyce
Groupie Joined: 19 August 2008 Location: Romania Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
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
|
|
crystyce
Groupie Joined: 19 August 2008 Location: Romania Status: Offline Points: 15 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |