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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1241.1 | GOSOX::RYAN | DECwindows Mail | Tue Aug 08 1989 09:11 | 10 | |
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.2 | CCIIS1::MAILLARD | Benoit Maillard @pao | Tue Aug 08 1989 10:45 | 5 | |
We will try that. Thanks for your fast answer, Regards, Benoit |