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

Report markup flaw

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Report markup flaw
    Posted: 03 May 2008 at 10:24pm
I have a combo button inside my cell, with these constraints: "1" "2"
When selected, I want my cell to make use of Markup:
"1" yields "<TextBlock FontWeight='Bold' Foreground='Blue' Text='1'/>"
"2" yields "<TextBlock FontWeight='Bold' Foreground='Red' Text='2'/>"
 
However, SetCaption is never called. If we trace the calls we end up at XTPReportInplaceControls.cpp(857):
 
pItem->OnConstraintChanged(&itemArgs, pConstraint);
pReportControl->RedrawControl();
pReportControl->SendMessageToParent(itemArgs.pRow, itemArgs.pItem, itemArgs.pColumn, XTP_NM_REPORT_VALUECHANGED, 0);
 
OnConstraintChanged will only update the value (SetValue). Preferrably, the correct Markup-caption should be set before the control is redrawn!
 
As I see it, the Markup needs some re-design in the report control. Also see http://forum.codejock.com/forum_posts.asp?TID=10473
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.