Re: PVWAVE - widgets [message #4871] |
Wed, 16 August 1995 00:00 |
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  |
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  |
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.
|
|
|