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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: PVWAVE - widgets [message #4871] Wed, 16 August 1995 00:00
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
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?

: Any help appreciated!!

I find that the position keyword *does* work for wwinit, but doesn't for
wwmainwindow (PV-Wave 4.2, HP-UX). Any help also appreciated!

Peter


--------------------------------
Peter Webb, HP Labs Medical Dept
E-Mail: peter_webb@hpl.hp.com
Phone: (415) 813-3756
Re: PVWAVE - widgets [message #4872 is a reply to message #4871] Wed, 16 August 1995 00:00 Go 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
Re: PVWAVE - widgets [message #4874 is a reply to message #4871] Wed, 16 August 1995 00:00 Go to previous message
rmmoss is currently offline  rmmoss
Messages: 12
Registered: August 1995
Junior Member
In article <40sn20$urh@seralph9.essex.ac.uk>, Pearson J E <jepear@essex.ac.uk> writes:
|> 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?
|>
|> Any help appreciated!!
|>
|>
|> --
|> |Jonathan Pearson - Postgrad| Why Waste Time Learning? |
|> | Computer Science Dept. | When Ignorance Is Instantaneous! |
|> |University Of Essex,England| |
|> | Mail--jepear@essex.ac.uk | - Hobbes, from Calvin and Hobbes fame |
|>

Well, you didnt mention the window manager you were using, but if your using
Motif, its probably a setting in your .Xdefaults file that needs tweaking.
Try putting the following in ~/.Xdefaults:

Mwm*clientAutoPlace: False

See your friendly documentation for exactly what this does. There are a number
of such resources which may be of interest to persons doing widget programming.
Personally, I also like

Mwm*interactivePlacement: True

Anyway, have fun :)

Robert M. Moss, Ph.D.
Texaco Inc.
mossrm@texaco.com <--- note new userid (dont ask)

This does not necessarily reflect the opinions of Texaco Inc.
  Switch to threaded view of this topic Create a new topic Submit Reply
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 13:44:52 PDT 2025

Total time taken to generate the page: 0.00687 seconds