|
-
Mar 8th, 2008, 04:27 AM
#1
[2005] Use timer and graphics
Hi All,
I can use a timer and I can draw a rectangle with the paint event and fill it, but how can I use this timer with graphics.
Thanks,
sparrow1
-
Mar 8th, 2008, 06:58 AM
#2
Re: [2005] Use timer and graphics
This is kind of an open ended question. Could you be more specific? What, with graphics, do you need to do?
-
Mar 8th, 2008, 08:04 AM
#3
Re: [2005] Use timer and graphics
 Originally Posted by Hack
This is kind of an open ended question. Could you be more specific? What, with graphics, do you need to do?
Hi Hack,
I want to use a timer to draw a rectangle and not directly with a button.
It could also be an ellipse or triangle, the purpose is the same.
Secondly, I want to change the color of that rectangle after some time set by a timer.
That's way I made a more general question about using a timer and graphics.
Thanks,
sparrow1
-
Mar 8th, 2008, 09:08 AM
#4
Re: [2005] Use timer and graphics
You still do the drawing in the paint event handler of the control, and just invalidate or refresh the control on the timer.tick event.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|