Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Best way to prevent deformed IDL widgets?
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?
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 : :
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 : : :
> 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 | =================================================