Re: widget_base alignment question [message #42718 is a reply to message #42639] |
Mon, 21 February 2005 16:45   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
JD Smith writes:
> Your test program behaves differently, but just as poorly. I found out
> that at least one of the problems is entirely unrelated to the draw
> widget: grid layouts under X don't like to be resized in the least. You
> can show it like this:
>
> top=widget_base(/COLUMN)
> b=widget_base(top,/GRID_LAYOUT,COLUMN=2,/FRAME)
> l=widget_label(b,value='ALIGN_LEFT',/ALIGN_LEFT,/FRAME)
> l=widget_label(b,value='ALIGN_RIGHT',/ALIGN_RIGHT,/FRAME)
> widget_control, b,/realize
>
> Looks fine, nicely centered and aligned. Now try:
>
> widget_control, b,xsize=200
>
> The rightmost box shifts inside of its frame to cut off the last
> letter. Why?
Windows doesn't cut the letter off, but it does jam
the button frame up against the base frame in a way that
doesn't happen to the frames on the left. It looks ugly,
but, ... well, what else is new? Something is not right,
clearly.
> I'm not asking for a herculean alignment effort, merely
> to increase the size of the label base. And heaven forfend that I
> give the grid base an xsize to begin with (though SCR_XSIZE seems to
> work initially, but not on subsequent sizings). I think RSI needs to
> chain an intern to a desk this Spring and have her go through all
> possible combinations of widget alignment on all platforms, and take
> careful note of all the inconsistencies. Volunteers?
Oh, Lord. Would this be a *paid* internship? I've got a couple
of young men at home who are looking for a job this summer. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|