Re: widget_label bug in IDL 5 [message #9682] |
Mon, 11 August 1997 00:00  |
wonko
Messages: 22 Registered: March 1997
|
Junior Member |
|
|
brochot@cnrs-orleans.fr (Jean-Yves BROCHOT) wrote:
>> base = WIDGET_BASE( /COLUMN, /BASE_ALIGN_CENTER)
>> label = widget_label(base, xsize=300)
>> b1 = WIDGET_BASE(base, /ROW, /BASE_ALIGN_CENTER)
>> draw1 = widget_draw(b1, xsize=200, ysize=100)
>> draw2 = widget_draw(b1, xsize=200, ysize=200)
>> widget_control, base, /realize
>
> now, if I send the command
>
>> widget_control, label, set_value='I have moved'
>
> the widget_base base is resized of 4 pixels on X and Y.
>
> If I do the same in IDL 4, application don't resize.
>
> If somebody know how I can avoid this resizing, I'm interessed.
Me too!
Same problem here. It helps sometimes not to change the label's size. I
use a monospaced font and initialize my labels with something like
VALUE=' ', and don't change the number of
characters later.
Similar problem: try adding another base to the bottom of your widget.
Again, the whole widget is resized. Not always, but often enough. Even
labels become bigger in both X and Y direction.
Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
|
|
|