Re: Win32Lib; Timed events
- Posted by CChris <christian.cuvier at ?griculture.go?v.fr> May 16, 2008
- 684 views
ZNorQ wrote: > > > I have a couple of questions in regards to timed events in Win32Lib; > > a) Why wont this code example work? (PS! The mbox is just another form of > message_box, > and it works - this isn't the problem.) > > procedure evnTIM_Timer (integer hControl, integer hEvent, sequence > uParameters) > mbox("5 seconds just passed...") > end procedure > setTimer(fmMAF, 12, 5000) > setHandler(12, w32HTimer, routine_id("evnTIM_Timer")) > > b) Is it possible to create timers that aren't 'linked' to a window? > > Kenneth/ZNorQ Of course. Any control will accept a timer AFAIK. As to why the message box doesn't show up: try replacing it with a showMessage() statement, and see if you "get the message". I use this for debugging things where the inspected window must not lose focus to the debugger, so it definitely works. CChris