[lazarus] timer on win32
Martin Smat
martin.smat at tiscali.cz
Mon Nov 18 12:23:25 EST 2002
Vincent Snijders wrote:
>Hi,
>
>As somebody may have noticed, at the moment timers are not working in the
>win32 widgetset. Since this seemed a relatively easy and confined problem, I
>decided to look into it.
>
>I think the problem is caused by the fact that the settimer function isn't
>called with a real window handle, but with the pointer to the (LCL-)timer
>object. I don't think we can / should / may put any window handle in the
>LCL, so calling it with a window handle is out of the question.
>
Yes, you are right. I tried to implement timers some weeks ago. As the
handle I used the handle of the parent window
(TWinControl(AOwner).Handle) in Timer constructor. There was no problem,
but the timer never calls the assigned TimerCBProc. Maybe you will have
more luck.
Martin Smat.
>
>
>
More information about the Lazarus
mailing list