Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!ico!attc!marbru From: marbru@attc.UUCP (Martin Brunecky) Newsgroups: comp.windows.x.motif Subject: Re: problems creating and destroy app shells Message-ID: <914@attc.UUCP> Date: 7 Dec 90 15:20:01 GMT References: <5613@mnetor.UUCP> <110630029@hpcvlx.cv.hp.com> Reply-To: marbru@auto-trol.com (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 41 In article <110630029@hpcvlx.cv.hp.com> gabe@hpcvlx.cv.hp.com (Gabe Begeddov) writes: > > And while I'm griping about shells :-)... > >On the issue of placement, I don't know why it wouldn't work if you are specifying >an x,y prior to popping it up. If you use DialogShell in the default motif way >then you would be "popping" it up by managing the dialog child in which case you >could use the XmNdefaultPosition resource to get centering over the grandparent >of the dialog. > Most often overlooked "feature" of XmDialogShell is the fact it IGNORES x,y values set by the user for the *shell*, and uses the x,y specified for it's *child*, i.e. manager widget. The "feature" comes from XUI's decision to *hide shells*, i.e. make the programmer *unaware* of the shell presence. Wheather it was the best descision ... Note the use of the child's x,y for the shell's position also implies several hacks for get values ... To OSF: (just a minor proposal) May be, the XmDialogShell should default to "Xm_UNSPECIFIED_POSITION" for x,y; meaning "use child's x,y instead". The same should apply for shell width,height. If the user has specified x,y for the shell, i.e. it is no more "Xm_UNSPECIFIED_POSITION", the shell could behave like any normal, good behaving Xt shell. This would preserve functionality for those who like/depend upon XUI style of "hidden things", but also eliminate confusion for those who know (or believe to know) what the shell is for. =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky {...}sunpeaks!auto-trol!marbru (303) 252-2499 (sometimes also: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404 -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky {...}sunpeaks!auto-trol!marbru (303) 252-2499 (sometimes also: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404