Print Page | Close Window

Report markup flaw

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=10482
Printed Date: 23 September 2024 at 9:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Report markup flaw
Posted By: znakeeye
Subject: Report markup flaw
Date 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 - http://forum.codejock.com/forum_posts.asp?TID=10473



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