![]() |
Changing markup properties at runtime |
Post Reply ![]() |
Author | |
ABuenger ![]() Newbie ![]() ![]() Joined: 02 February 2006 Status: Offline Points: 1075 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
CXTPMarkupRectangle*Rectangle = MARKUP_DYNAMICCAST(CXTPMarkupRectangle, pElement);
Rectangle->SetFill(new CXTPMarkupSolidColorBrush(clr));
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |