Home » Community » Newbie corner » How to Draw without overriding Paint?
Re: How to Draw without overriding Paint? [message #38820 is a reply to message #38819] |
Sun, 20 January 2013 15:37  |
|
lectus wrote on Sun, 20 January 2013 14:15 | Thank you!
It works!
Let's see if I got the logic right:
1) You create a Image object as member of the class so it lasts while TopWindow lasts.
2) You draw this Image object on Paint reserving its position.
3) On any event, like the click of the button you use ImageDraw to draw anything and finally you assign it to the Image object to show it on the screen, and finally call Refresh() to update the window.
|
Yes, just like that
|
|
|
Goto Forum:
Current Time: Sun Aug 24 20:36:00 CEST 2025
Total time taken to generate the page: 0.06644 seconds
|