Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!cs.umn.edu!uc!shamash!hare!dka From: dka@hare.cdc.com (d k adams x-2675) Newsgroups: comp.windows.x Subject: Motif 1.1 problem with shells and XtRealize and XtUnrealize Message-ID: <33913@shamash.cdc.com> Date: 6 Jun 91 22:46:50 GMT Article-I.D.: shamash.33913 Sender: usenet@shamash.cdc.com Reply-To: dka@mips.COM (d k adams x-2675) Organization: Your Organization Goes Here Lines: 30 HELP! DOES ANYONE KNOW OF A WORK AROUND FOR THE FOLLOWING PROBLEM? My application requires many windows to pop up in response to a selection from a menu bar. The windows that are popped up are too complex to use a pop up shell and XtPopup and XtPopdown. ( It is my understanding that a pop up shell can only be the parent of one composite or simple widget. My pop up windows are neither of these. ) My solution to get around this was to create all "pop up" windows as children of topLevelShells or applicationShells. Then I could Realize and Unrealize the shells as they were needed. The problem is that consecutive calls to XtRealize and XtUnrealize do not work. The widgets act like they are ignoring input after the second call to XtRealize the shell. The problem only occurrs with Motif 1.1. The program works fine with Motif 1.2. Based on this I can only assume that it is a Motif bug that was fixed in 1.2. I have to use Motif 1.1 for my platform. DOES ANYONE KNOW OF A WORK AROUND FOR THIS PROBLEM USING MOTIF 1.1? I do know that an option is to create and destroy the widgets dynamically instead of creating all widgets in the beginning of my programs execution. I am more interested in fixing the above described problem. PLEASE SEND A RESPONSE TO email: dka.udev.cdc.com | Dorian K. Adams (dka@hare.udev.cdc.com ) phone: (612) 482-2675 | Control Data Corp. | 4201 N. Lexington Ave. Arden Hills, Mn 55126-6198