Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Invalidating and Rendering parts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Invalidating and Rendering parts

 Post Reply Post Reply
Author
Message
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post Topic: Invalidating and Rendering parts
    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++
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 10 December 2008 at 3:22pm

Hi,

how do you show progress ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2008 at 3:18am
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++
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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 December 2008 at 7:20am
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
Back to Top
BobWansink View Drop Down
Groupie
Groupie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobWansink Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2008 at 9:33am
Thanks Oleg!
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++
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.250 seconds.