Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!PIT-MANAGER.MIT.EDU!jik From: jik@PIT-MANAGER.MIT.EDU (Jonathan I. Kamens) Newsgroups: comp.windows.x Subject: Which shell type should I use? Message-ID: <8910251342.AA20015@pit-manager.MIT.EDU> Date: 25 Oct 89 13:42:44 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 36 Problem: I want to pop up an error message shell containing a form which contains a label an an "OK" button. The shell should have the following characteristics: 1. It should not move independent of the application window. That is, if I move the shell, the application moves the same amount in the same direction, and vice versa. 2. It should iconify when the application is iconified, and not otherwise. 3. Its geometry should be relative to the application window, not to the screen. 4. It should be constrained by the application window. (These first four items suggest that the window created by the shell should be a sub-window of the application's main window.) 5. I should be able to change the keyboard focus on it (XtSetKeyboardFocus). 6. I should be able to use XtMoveWidget on it, or change its location in some other way after it is realized but before it is popped up, without an ICCCM-compliant window-manager ignoring my movements. Thus far, I have tried using overrideShellWidgetClass and transientShellWidgetClass. Neither of them meets criteria 1, 3, or 4. The transient shell meets 2 and 5, but not 6. The override shell meets 6, but not 2 or 5. So, neither of these shell classes is going to do what I want, unless I'm missing something. *IS* there a shell that has the qualities I'm looking for? Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-4261 Home: 617-782-0710