[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

996.0. "Caution box" by EVOAI2::BOUNOUH () Thu Jun 22 1989 02:36

	A single question.	

		It seems to me that, when I Fetch and Manage a 
	Caution Box, the Server don't display it immediatly when
	I want it on the screen.It seems that it does it in
	an 'asynchronous way'.
		In my examples (using then toolkit), I ask the user
	for any validation through a Caution box. If the answer is yes,
	! THEN ! I Fetch and Manage a List Box.

	The result is : the List box is Fetched and Manager (displayed)
		and THEN the caution box is displayed.Why ?

	Any suggestion ?

	Thank you
	Mustapha

T.RTitleUserPersonal
Name
DateLines
996.1Must process eventsLEOVAX::TREGGIARIThu Jun 22 1989 06:5822
    Because you are not returning to XtMainLoop after managing
    the Caution Box?  Two things must happen before the Caution
    Box will become fully displayed:
    
    1.  The application must send the map window request to the
        server.  This does NOT happen when the toolkit calls the 
        Xlib map routine.  Xlib buffers requests for efficiency.
        It will happen when you return to XtMainLoop because it
        calls Xlib routines that will flush the buffer.
    
    2.  The application must process the Expose events generated
        by the server in response to the map requests.  That is,
        step 1 without step 2 will result in an empty window
        being displayed.
    
    The main point is that a DECwindows application must ALWAYS
    process the event queue or you can run into this and other
    problems.
    
    Leo
                           

996.2CAUTION BOXEVOAI2::BOUNOUHThu Jun 22 1989 10:513
    
    	Thank you