Francois PIETTE wrote: >>>> What's annoying is that a TTimer creates a window and also requires >>>> ExtCtrls.pas to be included. >>> >>> On my site you find a serial comport component (TCiaComPort). It >>> has a custom Timer on board that does not create a window, but can >>> use an existing window. >> >> Thanks Wilfried, but that doesn't help much since in ICS V6 yuo >> can't use the ICS component window for such purposes. >> Is there any way to create a timer without a window being required, I >> think >> it's not possible. So probably writing a custom timer (which >> requires a window anyway maybe a solution/workaround, if you don't >> want ExtCtrls to be included). > > You can use SetTimer API which can either use a message or a callback > function. So using a callback function will be what you need.
Unfortunately the callback requires a window handle as well. VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime ); --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > -- > Contribute to the SSL Effort. Visit > http://www.overbyte.be/eng/ssl.html -- > [EMAIL PROTECTED] > http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be