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
Multiple widgetized windows in one application [message #15153] Fri, 23 April 1999 00:00 Go to previous message
bowman is currently offline  bowman
Messages: 121
Registered: September 1991
Senior Member
I'm trying to write a widget program that has multiple widgetized
windows. I have done the following (in outline form)


PRO MANIFOLD

base_id = WIDGET_BASE(TITLE='Manifolds')
... create subwidgets for this window

display_1_id = WIDGET_BASE(TITLE = 'Display 1', GROUP_LEADER = base_id)
... create subwidgets for this window

display_2_id = WIDGET_BASE(TITLE = 'Display 2', GROUP_LEADER = base_id)
... create subwidgets for this window

WIDGET_CONTROL, display_1_id, /REALIZE
WIDGET_CONTROL, display_2_id, /REALIZE
WIDGET_CONTROL, base_id, /REALIZE

XMANAGER, 'MANIFOLD', display_1_id, /JUST_REG
XMANAGER, 'MANIFOLD', display_2_id, /JUST_REG
XMANAGER, 'MANIFOLD', base_id


The 'Display 1' and 'Display 2' windows have identical widget structures
(but different widget id's, of course).

I have a single event handling routine, MANIFOLD_EVENT


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.

I must say that the documentation of GROUP_LEADER, JUST_REG, and NO_BLOCK
may have reached a new high in IDL documentation obscurity, approaching
the PS and X device descriptions. I may not be using them correctly. I
don't need to handle command line input.

Am I doing something wrong here?

Thanks, Ken

--
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: Thu Oct 09 20:51:58 PDT 2025

Total time taken to generate the page: 0.00583 seconds