Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Changing markup properties at runtime
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing markup properties at runtime

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: Changing markup properties at runtime
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 August 2008 at 2:18am
CXTPMarkupRectangle*Rectangle = MARKUP_DYNAMICCAST(CXTPMarkupRectangle, pElement);
Rectangle->SetFill(new CXTPMarkupSolidColorBrush(clr));
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.