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

Home » Public Forums » archive » Modal widgets and Sending Events
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
Modal widgets and Sending Events [message #21352] Sat, 19 August 2000 00:00
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Hello,

This question may be one of those that is best answered with 'Just
Because', but here goes...

I have a widget application (call it MYWIDGET) from which I send events
to other widgets in the calling routine (via Widget_Control, ExternalID,
Send_Event = {EVENTSTRUCTURE}). The procedure is modeled after David's
xCOLORS procedure.

I have noticed that when the TLB of MYWIDGET has the MODAL keyword set
to 1, the events are accumulated until I exit MYWIDGET. After exiting,
these events all come bubbling through to the event handler specified by
ExternalID. However, if the MODAL keyword is set to 0, the events are
sent to the handler as they are generated by the user's actions in
MYWIDGET.

Even though I can control the behavior (so the application does what I
want it to), this experience exposes one of my numerous widget
weaknesses: to me, XMANAGER is a black box shrouded by a dense fog in
the late hours of the night. So here's the question, how does XMANAGER
know an event is internal to the MYWIDGET application as opposed to the
faked events that I send to a widget created outside the widget
application?


Thanks,

Ben
--
Ben Tupper
248 Lower Round Pond Road
POB 106
Bristol, ME 04539

Tel: (207) 563-1048
Email: PemaquidRiver@tidewater.net
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: XPlot and IDL 5.2
Next Topic: XPlot and IDL 5.2

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

Current Time: Wed Oct 08 11:40:02 PDT 2025

Total time taken to generate the page: 0.00508 seconds