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

Home » Public Forums » archive » Re: changing size of the draw widget
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: changing size of the draw widget [message #5053] Fri, 29 September 1995 00:00 Go to previous message
nmw is currently offline  nmw
Messages: 18
Registered: January 1995
Junior Member
In article <449jd0$qrr@news.tamu.edu>,
Geetha Pathi <gpathi> writes:
>> Try using the /TLB_SIZE_EVENTS keyword of WIDGET_BASE and then writing
>> an event handler to process these base widget resize events.
>> Use WIDGET_CONTROL to resize the draw widget.
>
> Hi,
> I would like to know how you can resize the draw widgets using
> WIDGET_CONTROL procedure.
>
> Thanks,
> Geetha Pathi.
> (gpathi@loanstar.tamu.edu).
>

WIDGET_CONTROL is not a guaranteed way of changing the size of a widget.
Under X it sends a resize event and the widget attempts to change its
size. This is only a *request* to the X window manager - the window
manager does not have to honour it. If you try it using IRIX 5.2
and IDL 4.0 you will find that it doesn't work - what it does is to resize
the vertical size to 0.

The method I use is to destroy the old draw widget and create a new
one of the correct size.

--
Nigel Wade, System Administrator, Ionospheric Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Translucent image after polyshade
Next Topic: Question: Storage scheme of 2D-wavelet-coefficients

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

Current Time: Wed Oct 08 18:41:30 PDT 2025

Total time taken to generate the page: 0.00443 seconds