Path: utzoo!attcan!uunet!nems!mimsy!haven!decuac!shlump.nac.dec.com!shodha.dec.com!gsrc.dec.com!west From: west@gsrc.dec.com (Jim West) Newsgroups: comp.windows.x Subject: Re: Repositioning TopLevelShell Widgets Message-ID: <1357@shodha.dec.com> Date: 14 Jun 90 22:10:18 GMT Sender: news@shodha.dec.com Organization: Digital Equipment Corporation Lines: 33 In article <25891@netnews.upenn.edu>, jones@kings.wharton.upenn.edu (Christopher V. Jones) writes... >I am using VMS 5.3, DecWindows version 2. I have tried everything that >I can think of to be able to move a toplevelshell widget from within >program control. In particular, I have tried: > >1. Setting the XtNx and XtNy resources of the widget. >2. Calling XtMoveWidget >3. Calling XtMakeGeometry Request. > >Is it possible to move a TopLevelShell widget from within program control? >Thanks Is this just a one time thing or do you want to keep moving it? First thing to do is XSetValues on the widget returned from XtInitialize before the XtRealize, this will set your initial position. The quick (and dirty) way to move this widget is to get the window id, unmap the window, do an XChangeWindowAttributes, and remap the window. Or you can do anything that is equivilent. The trick is to 'unmap' the window first, change X and Y (or anything else) and then 'remap' the window. I've done this with success. ---------------------------------------------------------------------- Jim West | The Schainker Converse west@gsrc.dec.com | to Hoare's Law : | These are my opinions. | Inside every small problem Digital has no idea | is a larger problem struggling what I'm saying. | to get out. ----------------------------------------------------------------------