ALIGN_LEFT doesn't work. [message #12309] |
Tue, 14 July 1998 00:00 |
Imanol Echave
Messages: 26 Registered: May 1998
|
Junior Member |
|
|
Hi people:
I've a widget base with the keyword BASE_ALIGN_CENTER set (the base is a
column), and I want to put a widget base on the left of the parent base so I
create it with ALIGN_LEFT but it doesn't work. There's an example code.
PRO TEST
main_base=WIDGET_BASE(TITLE='Test',/BASE_ALIGN_CENTER,COLUMN =1)
first_row=WIDGET_BASE(main_base,ROW=1)
left_label=WIDGET_LABEL(first_row,VALUE='Left')
center_label=WIDGET_LABEL(first_row,VALUE='Center')
right_label=WIDGET_LABEL(first_row,VALUE='Right')
first_label=WIDGET_LABEL(main_base,VALUE='Label',/ALIGN_LEFT )
second_label=WIDGET_LABEL(main_base,VALUE='Label',/ALIGN_CEN TER)
thirst_label=WIDGET_LABEL(main_base,VALUE='Label',/ALIGN_RIG HT)
WIDGET_CONTROL,main_base,/REALIZE
END
-
Attachment: test.pro
(Size: 0.50KB, Downloaded 67 times)
|
|
|