[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

1899.0. "Weird mapping problem..." by FROTHY::TATLOW (The Question) Tue Dec 12 1989 14:14

    I'm having a weird problem with mapping and unmapping windows.
    
    I have a widget called toplevel that is set by XtInitialize.  I realize
    it and call XtMainLoop.  The windows pops up on the screen.  So far, so
    good.
    
    My program is communicating asynchronously with another program that
    tells it to unmap the window.  My program called
    XtUnmapWidget(toplevel), but nothing happens UNTIL AN EXPOSE EVENT
    OCCURS ON THE MENUBAR!!!  This seems really weird to me.  When my
    communication program asks my program to remap the window, (by calling
    XtMapWidget), nothing happens.
    
    Why does the unmapping not take place until the menubar gets an expose
    event?  I don't see what the two events have to do with each other...
    What do I have to do to get my window to map and unmap under program
    control?
    
    T?
    
    
T.RTitleUserPersonal
Name
DateLines
1899.1DWT not callable from AST levelDECWIN::KLEINTue Dec 12 1989 15:055
You must not call the toolkit from AST level.  It sounds like this is your
problem.  You should use XtAddInput to take the AST and "reschedule" it
at non-AST level.

-steve-
1899.2Stuff must be sent to the serverMELTIN::dickGvriel::SchoellerTue Dec 12 1989 15:4610
Even after you have made the change that Steve suggested, you will have a
problem.  The map or unmap requests put commands in the queue.  If you do
not return to XtMainLoop or call XFlush, these may not get sent to the
server.

In the case of the map request, you will also have to go off and field
events (as been explained ad nauseum elsewhere) in order to get the expose
on the newly mapped windows before drawing.

Dick