[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

2921.0. "windows with one event queue" by MLNCSC::VOCI () Wed Jun 13 1990 05:17

    A customer of mine wants to have 4 windows that have only one
    queue of events, that means that when one window after an event 
    does "something" this "something" must occur on all the windows.
    Also all the messages must appear on all the windows.
    
    I don't know if this is possible, I'm new with decw.
    Can anyone help me ?
    Thanks,
    Gea.
T.RTitleUserPersonal
Name
DateLines
2921.1PSW::WINALSKICareful with that VAX, EugeneWed Jun 13 1990 14:1610
X only has one event queue per display.  XNextEvent() gives you the next event
on the queue, regardless of which window it came from.  If you want to treat
all events the same no matter which window they came from, don't discriminate
based on the window ID in the event structure.

To cause updates to one window to occur on the other windows, you will have to
code your event processing so that you perform operations on all four windows,
whenever you do something.

--PSW
2921.2One application - four windows!TLE::ROUTLEYKevin Routley - VAX/VMS & XD DEBUGThu Jun 14 1990 11:299
Even simpler ... have one application that creates the four windows.  When
the application recognizes that an event occurred in one of the windows, it
does the work to update the other windows.

That is effectively what debug does.  You press the step button in the main
window, and Debug updates the SRC window to show the new source line, and
updates the OUT window with a new message.

Kevin