Widgets Default sizing. [message #10574] |
Fri, 12 December 1997 00:00 |
Evilio del Rio
Messages: 17 Registered: December 1997
|
Junior Member |
|
|
Hello,
Does anybody know how to make all members of a Row base widget
have the same XSIZE (i.e. the largest on that base).
The keyword GRID_LAYOUT adjusts YSIZE for ROW bases and XSIZE for
COLUMN ones and it's not what I want. For example:
wbase = WIDGET_BASE(ROW=2); /GRID_LAYOUT here will make a 512x1024
; widget because it adjusts YSIZE of wbuts
wbuts = WIDGET_BASE(wbase,COLUMN=2,/GRID_LAYOUT)
wbut1 = WIDGET_BUTTON(wbuts,VALUE='Done')
wbut2 = WIDGET_BUTTON(wbuts,VALUE='Cancel')
wdraw = WIDGET_DRAW(wbase,XSIZE=512,YSIZE=512)
WIDGET_CONTROL,wbase,/REALIZE
I have tried different combinations like encapsulation of a ROW base with
a COLUMN base but it does not work. I don't want to use XSIZE directly
because I want this feature in a more sophisticated widget tree.
Many thanks.
Cheers,
____________________________________________________________ ____
Evilio Jose del Rio Silvan Institut de Ciencies del Mar
E-mail: edelrio@icm.csic.es URL: http://www.bodega.org/
"Anywhere you choose,/ Anyway, you're gonna lose"- Mike Oldfield
|
|
|