Re: widget_label bug in IDL 5 [message #9704 is a reply to message #9682] |
Fri, 08 August 1997 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Jean-Yves BROCHOT wrote:
>
> I built this little based widget application in IDL 5
>
>> 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.
>
> thanks.
Jean-Yves -
This is definitely a bug in IDL 5.0. You can work around this problem
for now by using:
widget_control, base, update=0
widget_control, label, set_value='I have moved'
widget_control, base, update=1
RSI has confirmed that this is indeed a problem. Our programs would
resize themselves so that the buttons, sliders etc. would be off the
screen! You might want to check David Fanning's web page to look for
a pretty comprehensive list of bug reports and their replies.
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 2200
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|