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

Home » Public Forums » archive » Re: botton size ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: botton size ? [message #19645 is a reply to message #19644] Mon, 10 April 2000 00:00 Go to previous messageGo to previous message
mallors is currently offline  mallors
Messages: 76
Registered: November 1997
Member
In article <38f1eaa1$0$26046@news.execpc.com>,
"pei zeng" <pei@prism-cs.com> writes:
> Hi,
>
> I have a dumb question: when I place 3 button with value 'Apply', 'OK' and
> 'Cancel', respectively, in one row, the buttons will have different size,
> and I can not find a way to make them have the exact same size. Can anybody
> help me?
>
> thanks

Hi,

The GRID_LAYOUT keyword to WIDGET_BASE will do
this in a portable way:

base = WIDGET_BASE (/COLUMN)
grid = WIDGET_BASE (base, COLUMN = 3, /GRID_LAYOUT)
b1 = WIDGET_BUTTON (grid, VALUE = 'Button 1')
b2 = WIDGET_BUTTON (grid, VALUE = 'Button 2, with more text')
b3 = WIDGET_BUTTON (grid, VALUE = 'B')
WIDGET_CONTROL, /REALIZE, base

All buttons will be as wide as the widest "natural width"
button. The natural widths are derived from the button labels.



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Robert S. Mallozzi 256-544-0887
Mail Code SD 50
http://gammaray.msfc.nasa.gov/ Marshall Space Flight Center
http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: delete all comp.lang.idl.pvwave,and cancel same
Next Topic: Re: intersection of 2 arrays

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

Current Time: Sun Apr 26 11:17:18 PDT 2026

Total time taken to generate the page: 1.03807 seconds