![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Application.OnIdle := MoveBall;
zeddy © (2003-11-24 21:20:00)What is the KOL equivalent for Application.OnIdle event?
I have a mck form, an imagelist and a paitbox. I have loaded a bitmap picturing a tennis ball.
How can i move the ball on the form's surface, up and down, if i have no .OnIdle event?
Is there a secret windows message that i can track to get this kind ov eventloop ?
Thanks
puky (2003-11-25 21:16:00) [1]It is better to use kol Thread object, you can reach maximum posibble redraw speed.
Gandalf (2003-11-25 10:06:00) [2]Look throw in old topics - you can find full answer on english
Vladimir Kladov (2003-11-24 21:48:00) [3]RegisterIdleHandler, KOL 1.85+.
But it is possible (and better) to use in OnTimer: PaintBox1.Invalidate;
and move your balls in PaintBox1.OnPaint.
Or even more better to change ball position in OnTimer, and in OnPaint just repaint it.