Re: Widget Placement [message #12743] |
Fri, 04 September 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Bernard Puc (bpuc@va.aetc.com) writes:
> Yes, the computer is good at it - except for the widget's window
> frame that seems to always get pushed just off the screen.
Oh, now you are talking about the black art of *exact*
window placement. A whole different kettle of fish, if
you ask me. Because now you have to worry about the window
borders that each window manager throws around its windows.
A HUGE pain in the neck, because there must be a thousand
variations.
I tend to tell my widgets "sorta over there", so that I
can rely on the user for exact placement if he/she is so
inclined. I'm kind of anal when it comes to layout, so
it took me a long time to learn how to give up this
kind of control. But I'm happier now than I used to be. :-)
Cheers,
David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Widget Placement [message #12744 is a reply to message #12743] |
Fri, 04 September 1998 00:00  |
Bernard Puc
Messages: 65 Registered: January 1998
|
Member |
|
|
David Fanning wrote:
>
> I should think that, given a top-level widget base ID, a
> computer would be good at finding out the size of the base,
> the size of the display, calculating the offsets, and positioning
> the base where you wanted it. Have you thought about
> writing a procedure that did this? Then you could call the
> procedure instead of calculating all of this stuff
> with a pencil. :-)
Yes, the computer is good at it - except for the widget's window
frame that seems to always get pushed just off the screen. Its not
a big deal, I just thought maybe there was an IDL 'feature' for it
comparable to the direct graphics windows which get placed in a
certain corner based on the window id number.
--
Bernard Puc
AETC, INC
(703) 413-0500
bpuc@va.aetc.com
|
|
|
Re: Widget Placement [message #12746 is a reply to message #12743] |
Fri, 04 September 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Bernard Puc (bpuc@va.aetc.com) writes:
> Is there a neat way of locating a widget to appear flush against the
> bottom and right edge of the screen? By neat I mean without having
> to calculate the x and y dimensions of the widget and figuring out
> the offsets.
I should think that, given a top-level widget base ID, a
computer would be good at finding out the size of the base,
the size of the display, calculating the offsets, and positioning
the base where you wanted it. Have you thought about
writing a procedure that did this? Then you could call the
procedure instead of calculating all of this stuff
with a pencil. :-)
Cheers,
David
P.S. Don't be overly concerned with positioning widget programs.
People with pointing devices tend to move things where they want
them, no matter what kind of layout you think is aesthetically
pleasing.
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|