Re: ALIGN_LEFT doesn't work. [message #12293] |
Tue, 14 July 1998 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Imanol Echave wrote:
>
> 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
This works fine under Solaris 2.x:
IDL> print, !version
{ sparc sunos unix 5.1 Apr 13 1998}
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|