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

Home » Public Forums » archive » Best way to prevent deformed IDL 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
Best way to prevent deformed IDL widgets? [message #3754] Tue, 14 March 1995 12:15 Go to next message
patterso is currently offline  patterso
Messages: 36
Registered: February 1995
Member
I am using IDL to create some widgets for data handling. When I create the
window and place the widgets in it, IDL will stretch the last widget
in a row so that it matches the width of the window. This means for
instance, that if I try and put three buttons at the bottom of a wide
window such as PRINT USE and CLOSE I get:

| PRINT | | USE | | CLOSE |

with the close button being stretched out of shape.

Is it possible to either (a) stretch all buttons in proportion or
(b) prevent this stretching mechanism by a simple method (fixing the
size of the widgets directly makes it awkward to update at a later
date)

Thanks

Tim Patterson
:
Re: Best way to prevent deformed IDL widgets? [message #3842 is a reply to message #3754] Wed, 15 March 1995 13:30 Go to previous messageGo to next message
patterso is currently offline  patterso
Messages: 36
Registered: February 1995
Member
Doesn't XPDmenu just make pull down menus?


Ding Wu (dwu2@curly.cc.emory.edu) wrote:
: Use XPdMenu instead of WIDGET_BUTTON.

: Ding

: Tim Patterson (patterso@astrosun.tn.cornell.edu) wrote:
: : I am using IDL to create some widgets for data handling. When I create the
: : window and place the widgets in it, IDL will stretch the last widget
: : in a row so that it matches the width of the window. This means for
: : instance, that if I try and put three buttons at the bottom of a wide
: : window such as PRINT USE and CLOSE I get:

: : | PRINT | | USE | | CLOSE |

: : with the close button being stretched out of shape.

: : Is it possible to either (a) stretch all buttons in proportion or
: : (b) prevent this stretching mechanism by a simple method (fixing the
: : size of the widgets directly makes it awkward to update at a later
: : date)

: : Thanks

: : Tim Patterson
: : :
Re: Best way to prevent deformed IDL widgets? [message #3844 is a reply to message #3754] Tue, 14 March 1995 13:39 Go to previous messageGo to next message
dwu2 is currently offline  dwu2
Messages: 2
Registered: March 1995
Junior Member
Use XPdMenu instead of WIDGET_BUTTON.

Ding

Tim Patterson (patterso@astrosun.tn.cornell.edu) wrote:
: I am using IDL to create some widgets for data handling. When I create the
: window and place the widgets in it, IDL will stretch the last widget
: in a row so that it matches the width of the window. This means for
: instance, that if I try and put three buttons at the bottom of a wide
: window such as PRINT USE and CLOSE I get:

: | PRINT | | USE | | CLOSE |

: with the close button being stretched out of shape.

: Is it possible to either (a) stretch all buttons in proportion or
: (b) prevent this stretching mechanism by a simple method (fixing the
: size of the widgets directly makes it awkward to update at a later
: date)

: Thanks

: Tim Patterson
: :
Re: Best way to prevent deformed IDL widgets? [message #3929 is a reply to message #3754] Fri, 24 March 1995 02:05 Go to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
> Subject: Best way to prevent deformed IDL widgets?
> Date: 14 Mar 1995 20:15:04 GMT
> From: patterso@astrosun.tn.cornell.edu (Tim Patterson)
> Organization: Cornell University
> Newsgroups: comp.lang.idl-pvwave

> I am using IDL to create some widgets for data handling. When I create the
> window and place the widgets in it, IDL will stretch the last widget
> in a row so that it matches the width of the window. This means for
> instance, that if I try and put three buttons at the bottom of a wide
> window such as PRINT USE and CLOSE I get:

> | PRINT | | USE | | CLOSE |

> with the close button being stretched out of shape.

> Is it possible to either (a) stretch all buttons in proportion or
> (b) prevent this stretching mechanism by a simple method (fixing the
> size of the widgets directly makes it awkward to update at a later
> date)

The solution I use is to put the buttons in there own widget_base(). You will need
to give a size for this, unfortunately.

Fergus

--

=================================================
| Fergus Gallagher |
| Remote Sensing Applications Development Unit |
| British National Space Centre |
| Monks Wood |
| Huntingdon PE17 2LS / UK |
| |
| F.Gallagher@nerc.ac.uk |
| http://uh.nmt.ac.uk/bnsc/fgg.html |
=================================================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: freeing memory in programs
Next Topic: idl increases the size of the X daemon in HPUX

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

Current Time: Sat Oct 11 14:21:01 PDT 2025

Total time taken to generate the page: 0.72235 seconds