Re: Win32Lib; Timed events

new topic     » goto parent     » topic index » view thread      » older message » newer message

ZNorQ wrote:
> 
> CChris wrote:
> > 
> > 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"))

> It works now, not because I used the showMessage (I did, but that didn't
> change
> anything), but because I changed from timer ID 12 to 1... So, I guess you
> can't
> have 12 timers? (I don't have 12 timers, 12 was just a random number I picked
> for my routine..)
> 
> Thank for the feedback, though.. :)
> 
> Kenneth/ZNorQ

It works now, not because you picked a lower number.  
setHandler takes a Window id - not a timer id, 1 just happens to be
the same value as a Window id.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu