Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!julius.cs.uiuc.edu!news.cs.indiana.edu!msi.umn.edu!sctc.com!pasturel From: pasturel@sctc.com (Pierre Pasturel) Newsgroups: comp.windows.x.motif,bcr.motif Subject: Re: clientDecorations Keywords: I want to take away from parent but not children. Message-ID: <1990Dec7.184609.7516@sctc.com> Date: 7 Dec 90 18:46:09 GMT References: <449@rruxc.UUCP> Organization: Secure Computing Technology Corporation Lines: 50 >Do anyone know if there's a way to make windows "fixed (unmovable)" on a >display? I've been able to get rid of the boxes on the title bar, but >I can't eliminate the behavior that when I click on the title bar I >can still drag the window. I don't want my users to be able to move windows. Being new to motif, I don't know if there is a way to still have your frame but not allow the user to move it (the VendorShell XmInputModal resource????). I would like to know if someone out there can tell us. Getting rid of your frame all together will solve the problem if you can do without it. I created a demo where I don't want the person running it to be able to moving the windows. At first I wanted the frame to have the frame title to show the user what the window was, but I ended up getting rid of the frame and using an XmLabel to label each of my windows. Having an XmLabel allowed me to select its color, font, etc... easily, and with no frame, the user can't move the window. To do this, I have this in my defaults file: Mwm*XmTPT2.clientDecoration: none where XmTPT2 is the class name I use to create application shells whose windows I don't want a frame. >Also, how can I eliminate the frame components from the main window, >but still have them (title bar, menu, resize stuff) appear on windows >that are popped up as chldrena of the main window? It seems that >whatever I take away from the parent also gets taken away from its >children. The children are inheriting the decorations from the parent I assume. This is probably not the best way, but ....... There is an Mwm resource called transientDecoration which you can set for transient windows (e.g. short lived windows like dialog windows). You can only set it globally for all transient windows (ie. you can not specify this resource for a specific transient window). I have also noticed an XmNmwmDecorations VendorShell resource to set the decoration flags of MWM_HINTS for the window frame, but I haven't found a table listing the fields of MWM_HINTS to know what value I need to set XmNmwmDecorations to. Does anyone know what values are used to set this resource to select given decorations??? >Thanks, >Wayne Pierre pasturel@sctc.com