[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

291.0. "Share main_window between processes?" by WJG::GUINEAU () Thu Feb 23 1989 17:40

I'm trying to pass a widget hierarchy from one process to another.

What happens is the first application creates a main_window which will
contain the main_window of all the processes it spawns.

When the parent creates the detached process ($creprc()), how can I pass 
it's main_window "window ID" to the new process so it [the child] can create
windows in the parents main_window?

Or should I ask Can I do this?

John

T.RTitleUserPersonal
Name
DateLines
291.1LEOVAX::TREGGIARIFri Feb 24 1989 07:436
    You cannot pass a widget hierarchy between processes.  Widget ids
    are pointers to widget "instance" data structures.  So the id is
    only valid in that address space.
    
    Leo

291.2Can it be done somehow?WJG::GUINEAUFri Feb 24 1989 08:0817
I'm using UIL.

Is it somehow possible to get DwtFetchWidget() to use the main_window of 
another process as the parent to the new Hierarchy?

The reason I ask is I am working on an application which allows the
user to spawn a fixed number (4) of processes. The proceses are virtually
identical, do *all* the work and have relatively complex displays
(So passing window operations back to the parent would get real messy).

The parent is just a "window collection box and common startup/termination
point" for the application as a whole.


John