comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Newbie questin regarding Widget timers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Newbie questin regarding Widget timers [message #62187] Thu, 28 August 2008 11:49
Mike Potter is currently offline  Mike Potter
Messages: 19
Registered: August 2008
Junior Member
I'm working through some of the example code and am trying to
understand the utility of how "animation_doc.pro" uses widget timer
events.

On line 251 of the procedure is the statement:

WIDGET_CONTROL, wBase, TIMER=1

Lines 107-111 in the event procedure capture such events and
generate a new Widget timer event:

IF (TAG_NAMES(sEvent, /STRUC) eq 'WIDGET_TIMER') THEN BEGIN
WIDGET_CONTROL, sEvent.top, GET_UVALUE=pState
; WIDGET_CONTROL, (*pState).wBase, TIMER=1
return
ENDIF

It looks to me that this just continuously fires timer events every
second that do nothing. I commented out the lines mentioned and the
application still runs just fine. So what is the utility of this?

Thanks for you help!

Mike Potter
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: closing xwindows within IDL
Next Topic: Can't run idlde (7.0) on fedora 9

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:43:44 PDT 2025

Total time taken to generate the page: 0.00418 seconds