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

Home » Public Forums » archive » Multiple widgetized windows in one application
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: Multiple widgetized windows in one application [message #15219 is a reply to message #15153] Mon, 26 April 1999 00:00 Go to previous message
bowman is currently offline  bowman
Messages: 121
Registered: September 1991
Senior Member
In article <MPG.118d4a2f510ea10598977b@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Kenneth P. Bowman (bowman@null.edu) writes:
>
>> I'm trying to write a widget program that has multiple widgetized
>> windows.
>>
>> The program works, mostly. All three windows are realized. Events in
>> base_id and display_1_id windows are passed to MANIFOLD_EVENT. For some
>> reason, however, no events in 'Display 2' are passed to MANIFOLD_EVENT. I
>> know this because I print out part of every event that comes to
>> MANIFOLD_EVENT.
>>
>> Am I doing something wrong here?
>
> I don't see anything manifestly wrong. I wrote a simple test
> program putting your principles to work. The program, named TEST,
> works perfectly. I include it below.
>
> You don't mention what version of IDL you are running,
> but mine runs fine in IDL 5.2 on Windows NT.

I found a typo in my code and have made the program work, but that does
not mean that I understand /GROUP_LEADER, /JUST_REG, and EVENT_PRO.

Is /GROUP_LEADER *only* used to handle *killing* a widget hierarchy
containing multiple top level bases?

Should I use EVENT_PRO when I create the top-level bases, or should I call
XMANAGER with /JUST_REG? For consistency, why not always use EVENT_PRO
when creating a TLB and then call XMANAGER without any arguments?

Just out of curiosity, how many widget programmers prefer to write a
separate event-handler for each widget or group of widgets, and how many
prefer to have a single event handler routine?

Regards, Ken

P.S. At least the problem in my code wasn't in the COMMON block!

--
Dr. Kenneth P. Bowman, Professor 409-862-4060
Department of Meteorology 409-862-4466 fax
Texas A&M University bowmanATcsrp.tamu.edu
College Station, TX 77843-3150 Replace AT with @
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: on_ioerror?
Next Topic: Re: Widget draw problems...

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

Current Time: Sat Oct 11 11:21:21 PDT 2025

Total time taken to generate the page: 0.00824 seconds