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

Home » Public Forums » archive » Puzzled about event loops
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
Puzzled about event loops [message #18399] Mon, 27 December 1999 00:00
Karri Kaksonen is currently offline  Karri Kaksonen
Messages: 27
Registered: October 1999
Junior Member
Hello,

Is there a way to move the event loop around?

I just want to check some widget events in a
looong processing loop but the routine
event = widget_event(hiddenTextID,/nowait)
always returns with event structure {0, 0, 0}

The strange thing is that if I don't care about
this but fill in the fields myself then the program
works as intended. There are actually sensible events
like keyboard hits getting through somehow.

event = widget_event(hiddenTextID,/nowait)
; Fill in event.top that was 0 with something
; that xmanager would give me
event.top = self.tlb
widget_control, event.top, set_uvalue=self
; Call the main event handler directly
rawgui_events, event
; This works like a dream but clutters up the heap

What I would like to do is to stop event processing in
xmanager while I run my long loop and process events
one at a time. Can this be done easily?

I run this in pure object-graphics so it is slightly
different from the TestKey-example in Davids treasure
chest.

--
Regards,

Karri Kaksonen
Picker Nordstar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CALL_EXTERNAL problems (re: DICOM)
Next Topic: Job: Programmer, Monterey CA (FNMOC)

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

Current Time: Sat Oct 11 15:40:51 PDT 2025

Total time taken to generate the page: 1.03990 seconds