Skip to content

Dynamic Canvas - am I doing it right? #4093

Answered by andydotxyz
squidkeeper asked this question in Q&A
Discussion options

You must be logged in to vote

Anyway, all I need is an idiomatic way of saying RefreshYesNow; if that is poking an enclosing container and never returning the same object list twice, so be it. Maybe native widgets have it easier.

Just call canvas.Refresh(render.myWidget) and it will force a re-draw using the new info. Among other things that is what the container was doing but your renderer was not. That will ask it to re-paint without setting up a circular loop through the renderer Refresh call.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@andydotxyz
Comment options

Comment options

You must be logged in to vote
1 reply
@andydotxyz
Comment options

Answer selected by squidkeeper
Comment options

You must be logged in to vote
1 reply
@andydotxyz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants