Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!ames!dftsrv!etac632!joe From: joe@etac632 (Joe Fulson-Woytek) Newsgroups: comp.sys.sgi Subject: Re: SGI's migration to X Message-ID: <3320@dftsrv.gsfc.nasa.gov> Date: 31 Aug 90 20:32:27 GMT References: <208@voodoo.UUCP> <90Aug30.200125edt.682@smoke.cs.toronto.edu> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: joe@etac632.gsfc.nasa.gov (Joe Fulson-Woytek) Organization: NSESCC, Goddard Space Flight Center, Greenbelt MD Lines: 24 In article slehar@cochlea.bu.edu (Steve Lehar) writes: # #Yes they do, but what about if I am WRITING the application? I can #make my program receive the -geometry flag (or reasonable facsimile) #but what do I DO with that information? When I open my XWindow I use #the call # # win = XCreateWindow(display, RootWindow(display, screen), # xsh.x, xsh.y, xsh.width, xsh.height, # bw, vTemplate.depth, InputOutput, visual, # valuemask, &attrib); # #Note that there is no argument for x and y screen location! How do I #tell this XWindow where to appear? The routine XSetStandardProperties can be called after the XCreateWindow (we use XCreateSimpleWindow but it shouldn't matter). There is an XSizeHints struct which includes the position and size. Be sure to set the flags parameter to USPosition. The helloworld program in the "Introduction to the X Window System" by Oliver Jones shows an example of this which we used (except in the book the flags is set to PPosition which won;t work on the Iris. If you email me I could send you a helloworld type program which demonstrates this. Joe FUlson-Woytek