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

Home » Public Forums » archive » Catching events within Widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Catching events within Widgets [message #5945 is a reply to message #5941] Fri, 08 March 1996 00:00 Go to previous messageGo to previous message
jlaw is currently offline  jlaw
Messages: 11
Registered: November 1995
Junior Member
If you ignore some of the documentation, you can do this...

pro loop,ev
common ctl,ok,button1,button2,base
if ok eq 1 then return
ok = 1
i = 0
while ok do begin
i = i + 1
for j = 0 , 100 do void
widget_control,button1,set_value=string(i)
;
event=widget_event(base,/nowait)
; ^^^^^^^^^^^^^^^^^^^^^ Lets IDL find out whats going on in the world.
end
end
pro ender,ev
common ctl,ok,button1,button2,base
ok = 0
widget_control,button1,set_value='start'
return
end
pro starter
common ctl,ok,button1,button2,base
ok = 0
base=widget_base(/row)
button1 = widget_button(base,value='start',event_pro='loop')
button2 = widget_button(base,value='stop',event_pro='ender')
widget_control,base,/real
xmanager,'',base
return
end
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Q:[WAVE]:Reading binary data?
Next Topic: Re: constrained least-square fit

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

Current Time: Fri Oct 10 04:11:19 PDT 2025

Total time taken to generate the page: 0.48139 seconds