Invalidating and Rendering parts |
Post Reply |
Author | |
BobWansink
Groupie Joined: 24 January 2008 Status: Offline Points: 59 |
Post Options
Thanks(0)
Posted: 10 December 2008 at 5:38am |
Hi all,
is it possible to invalidate and/or Render() parts of an already rendered XAML object? Say i have a messagebox with a progressbar in it. I want to be able to update only de width of the progressfilling of the progressbar without having to reRender() the whole panel. Why would I object to this? Because the messagebox shows the output of our algorithm. Redoing Render() delays our system. Thanks! Bob |
|
Product: Xtreme ToolkitPro (MFC) version 13.0.0
Platform: Windows (32bit) - XP - Vista Language: Visual C++ |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, how do you show progress ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
BobWansink
Groupie Joined: 24 January 2008 Status: Offline Points: 59 |
Post Options
Thanks(0)
|
I'm using a Rectangle (contentOfProgress) within a Rectangle (borderOfProgress).
contentOfProgress uses a setter to set its width. Right now, i use an xaml file to Parse() the progressbar. I've added some code that fills in the width dynamically into the setter, then resubmits the entire XAML for parsing. This is sloppy though, since most of the waitwindow remains the same, only the progressbar is resized... Is it possible to get the CXTPMarkupObject representing the Setter and dynamically edit the width with something like: CXTPMarkupObject * pObj = xaml->getMarkupObject(x); pObj->SetWidth(int w); where 'x' is some sort of identifier and 'xaml' the root markupUIElement? Bob |
|
Product: Xtreme ToolkitPro (MFC) version 13.0.0
Platform: Windows (32bit) - XP - Vista Language: Visual C++ |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes. Add Name property for your Rectangle, now use FindName method to find it and SetWidth to set width.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
BobWansink
Groupie Joined: 24 January 2008 Status: Offline Points: 59 |
Post Options
Thanks(0)
|
Thanks Oleg!
|
|
Product: Xtreme ToolkitPro (MFC) version 13.0.0
Platform: Windows (32bit) - XP - Vista Language: Visual C++ |
|
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 |