[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

1241.0. "get window_id before widget realisation" by CCIIS1::MAILLARD (ultrix is good for you) Tue Aug 08 1989 06:31

    One of my customers has the following problem:
    He creates a DwAttachedDBCreate widget and wants to get the window
    id for use with Xlib routines.
    This the procedure sequence he uses:  (without all the arguments)
    	widget_id = DwtAttachedDBCreate
    	XtManageChild(widget_id)
    	XFlush(display_id)
    	window_id = XtWindow(widget_id)
    At this time, window_id equals to NULL.
    If he uses DwtAttachedDBPopupCreate, it works, but after XtManageChild
    the widget is realised on the screen, and he doesn't want to.
    He tried to put in the arglist MappedWhenManaged to false, but it
    did nothing, the widget is realised.
    He wants this window_id to associate a background pixmap with Xlib
    routines. For the moment, he cals Xmap to repaint the widget's 
    window and it's not very beautiful.
    
    	Thanks for your help,
    		Beno�t
                                                                     
    

T.RTitleUserPersonal
Name
DateLines
1241.1GOSOX::RYANDECwindows MailTue Aug 08 1989 09:1110
	The definition of realizing a widget is pretty much "create the
	widget's windows", so he can't get the window id until it's
	realized. However, he can accomplish what I think he wants by
	setting XtNmappedWhenManaged FALSE on the widget, managing and realizing
	it, then doing whatever he has to do requiring the window id before
	explicitly mapping it (or setting XtNmappedWhenManaged to FALSE) - 
	the window shouldn't be visible until the last step.

	Mike

1241.2CCIIS1::MAILLARDBenoit Maillard @paoTue Aug 08 1989 10:455
    We will try that. 
    Thanks for your fast answer,
    	Regards,
    	Benoit