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

Home » Public Forums » archive » Re: ALIGN_LEFT doesn't work.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ALIGN_LEFT doesn't work. [message #12293] Tue, 14 July 1998 00:00
David Foster is currently offline  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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: ALIGN_LEFT doesn't work. [message #12299 is a reply to message #12293] Tue, 14 July 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
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/
Re: ALIGN_LEFT doesn't work. [message #12300 is a reply to message #12293] Tue, 14 July 1998 00:00 Go to previous message
Imanol Echave is currently offline  Imanol Echave
Messages: 26
Registered: May 1998
Junior Member
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?
Re: ALIGN_LEFT doesn't work. [message #12308 is a reply to message #12293] Tue, 14 July 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Imagemap?
Next Topic: DO_APPLE_SCRIPT questions...

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

Current Time: Sun Oct 12 07:31:38 PDT 2025

Total time taken to generate the page: 1.59984 seconds