comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: PVWAVE - widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PVWAVE - widgets [message #4872 is a reply to message #4871] Wed, 16 August 1995 00:00 Go to previous messageGo to previous message
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <40sn20$urh@seralph9.essex.ac.uk>, Pearson J E
<jepear@essex.ac.uk> wrote:

> If you us ethe position keyword with the WwInit function, it says it is
> supposed
> to place the window at a specific position on the screen. However, it doesn't
> seem to and the window appears at different positions every time it is called.
>
> What am I doing wrong?
>

Hi Jonathan -

Here's my WwInit line for the initial position of a widget. xpos is a
simple calculation to offset the left edge so the widget is centered
horizontally. ypos is usually 0 for the WwInit call, and something else
for subsequent WwMainWindow calls.

base = WwInit('dn', 'Dn', layout, Title='DN Control Panel', $
/Form, Position=[xpos, ypos])

This is using olwm as the window manager. Some window managers may not
honor the position statement, but I don't know which window managers those
are. Also, I recall that IDL does not honor a 0,0 position. Could those be
the coordinates you are giving in your position?

--
Mike Schienle
Data Visualization and Image Processing Software Engineer
mgs@seldon.terminus.com
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: HDF viewer available?
Next Topic: Re: Unix to Vax floating point conversion

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:23:59 PDT 2025

Total time taken to generate the page: 0.00366 seconds