Re: Timer

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

why use setHandler?  and the number isn't the problem, because it's not even
triggering the onOpen event...the "warnErr" doesn't even trigger.

Michelle Rogers
----- Original Message ----- 
From: "Greg Haberek" <ghaberek at wowway.com>
To: <EUforum at topica.com>
Sent: Sunday, June 27, 2004 1:26 AM
Subject: Re: Timer


>
>
> I can't stress this enough..... use setHandler(). That's the first thing
> that's wrong, but not the problem. Try using a positive integer for
> 'mytimer' instead of -1. That's probably the problem.
>
> ~Greg
>
> ----- Original Message -----
> From: "Michelle Rogers" <michellerogers at bellsouth.net>
> To: <EUforum at topica.com>
> Sent: Sunday, June 27, 2004 12:56 AM
> Subject: Timer
>
>
> > What stupid thing am I missing?  I've done timers before...but for some
> > reason, I can't get this one to work tonight (heh..probably too
> > sleepy)...I've even taken it out of the code i'm working with and
reduced
> it
> > to just a skeleton timer code ..which is as follows....
> >
> > without warning
> > include win32lib.ew
> >
> > constant
> >   dummywin=create(Window,"A Timer",0,0,0,300,300,0),
> >   dummytext=create(LText,"Beginning text",dummywin,10,10,100,40,0)
> >
> >
> > integer mytimer,timerint
> > timerint=0
> > mytimer=-1
> >
> > global procedure onOpen_dummywin()
> > warnErr("open")
> >  setText(dummytext,"It's open")
> >    setTimer(dummywin,mytimer,1000)
> > end procedure
> >
> > global procedure onTimer_dummywin(object val)
> >   timerint=timerint+1
> >   setText(dummytext,"Timer:  "&sprint(timerint))
> > end procedure
> >
> > WinMain(dummywin,Normal)
> >
> > onOpen[dummywin]=routine_id("onOpen_dummywin")
> > onTimer[dummywin]=routine_id("onTimer_dummywin")
> >
> >
> > Actually, though, on second thought..it's not the timer that's not
> > working..it's the onOpen that isn't working....why would the onOpen not
> > trigger in this case?
> > Michelle Rogers
> > ----- Original Message -----
> > From: "cklester" <guest at RapidEuphoria.com>
> > To: <EUforum at topica.com>
> > Sent: Sunday, June 27, 2004 12:53 AM
> > Subject: OpenGL GUI
> >
> >
> > > posted by: cklester <cklester at yahoo.com>
> > >
> > > There's a package called GLUI User Interface Library. It's an OpenGL
GUI
> > > package.
> > >
> > > The source is available here: http://www.nigels.com/glt/glui/#download
> > >
> > > I can't use those files as given, so I was hoping somebody
> > > could compile it all into a .dll for me (to be used on Windows) and
> > > maybe provide a list of all the functions.
> > >
> > > Thank you. :)
> > >
> > > -=ck
> > > "Programming in a state of EUPHORIA."
> > >
> > >
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu