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 |
I am trying to create a file_selection widget. I am making it the child of an attached dialog box which is the child of the main window. Then I define the file_selection widget, taking all the defaults. Then later on a list_box widget is trying to attach to the file_selection widget. I am defining this in a uil file and managing the whole thing once in the 'c' file. When I run the executable, I get an error : 'X Toolkit Warning: Not all Children have same parent in XtManageChildren.' In addition, the file_selection widget and the attached list_box widget do not appear on my screen. However, if I go through my code and redefine the file_selection widget to be a label widget, it works fine. There is no warning and the label appears on the screen, with the attached list_box widget. does anyone have any clues about what the problem is? I suspected that it had to do with the file_selection dir_mask, but I tried defining that with no results. I have also tried setting the style to DwtWorkarea, but that didn't work either. Rachael Smith ( because I have to include it, DTN- 276-8543)
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2398.1 | file_selection widget has a HiddenShell parent | LEOVAX::TREGGIARI | Wed Mar 07 1990 12:58 | 13 | |
> 'X Toolkit Warning: Not all Children have same parent in > XtManageChildren.' > > In addition, the file_selection widget and the attached list_box > widget do not appear on my screen. They do have different parents. The toolkit inserts a HiddenShell widget between the widget you declare as the file selection widget's parent and the file selection widget. Just manage the two with separate calls to XtManageChild. Leo | |||||
2398.2 | thanks! | MARX::RSMITH | Wed Mar 07 1990 13:24 | 10 | |
Thank you, that worked! Two questions: 1. Did you just know that information or did you look it up in the documentation? (I looked and found nothing.) 2. So what is the name of the file selection box's parent? My file selection widget's parent is an attached dialog box. It's parent is the main window widget. So, is the file selection widget's ultimate parent the same as the main window's? I apologize if I am unclear. Rachael | |||||
2398.3 | Popup vs Normal children | LEOVAX::TREGGIARI | Wed Mar 07 1990 22:42 | 21 | |
> 1. Did you just know that information or did you look it up in the > documentation? (I looked and found nothing.) Just knew it... (I'm responsible for that "feature"...) > 2. So what is the name of the file selection box's parent? My > file selection widget's parent is an attached dialog box. It's parent > is the main window widget. So, is the file selection widget's ultimate > parent the same as the main window's? I apologize if I am unclear. The HiddenShell widget's name is "Popup". When you create a fileselection widget as the child of an attached dialog box, what you really get is a HiddenShell widget which is a "popup" child of the attached dialog box, and the fileselecton widget, which is the "normal" child of the HiddenShell. You could look in the DECwindows Guide to Application Programming (I think it's called) or an Intrinsics book for information on the difference between "popup" and "normal" widget children. Leo |