Print Page | Close Window

Changing markup properties at runtime

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11772
Printed Date: 14 September 2025 at 11:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing markup properties at runtime
Posted By: ABuenger
Subject: Changing markup properties at runtime
Date Posted: 08 August 2008 at 6:47pm
I've set markup content for a report control item as follow:

CString sMarker(
   _T("<Border Margin='1,1,3,3'>")
   _T("   <Rectangle Fill='#800000'/>")
   _T("</Border>"));

pItemMarker->SetCaption(sMarker);

Now I try to change the fill color at runtime. With the following code I get access to the Rectangle object, but can I change the Fill property?

CXTPMarkupUIElement *pMarkup = pItemMarker->GetMarkupUIElement();
CXTPMarkupVisual *pVisual = pMarkup->GetVisualChild(0);

Thanks



-------------
Codejock support



Replies:
Posted By: Oleg
Date Posted: 11 August 2008 at 2:18am
CXTPMarkupRectangle*Rectangle = MARKUP_DYNAMICCAST(CXTPMarkupRectangle, pElement);
Rectangle->SetFill(new CXTPMarkupSolidColorBrush(clr));


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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