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

Home » Public Forums » archive » Re: widget_label bug in IDL 5
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: widget_label bug in IDL 5 [message #9682] Mon, 11 August 1997 00:00 Go to previous message
wonko is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: differnces in structures for idl5
Next Topic: DICOM in IDL?

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

Current Time: Wed Oct 08 18:36:22 PDT 2025

Total time taken to generate the page: 0.00422 seconds