Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Imanol Echave (ccaeccai@sc.ehu.es) writes: > I work on a Linux machine in IDL 5.0 and the ALIGN_LEFT keyword doesn't override > the BASE_ALIGN_CENTER of the parent base. Do you think this is a bug? It certainly looks that way to me. In any case, you want IDL 5.1 for a lot of other reasons. :-) Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting E-Mail: davidf@dfanning.com Phone: 970-221-0438 Coyote's Guide to IDL Programming: http://www.dfanning.com/
I work on a Linux machine in IDL 5.0 and the ALIGN_LEFT keyword doesn't override the BASE_ALIGN_CENTER of the parent base. Do you think this is a bug?
Imanol Echave (ccaeccai@sc.ehu.es) writes: > 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. For what it is worth, your little example program works *perfectly* on my Windows NT machine in IDL 5.1. :-) Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting E-Mail: davidf@dfanning.com Phone: 970-221-0438 Coyote's Guide to IDL Programming: http://www.dfanning.com/