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

Home » Public Forums » archive » Re: How to get actual widget size?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to get actual widget size? [message #36674] Thu, 16 October 2003 12:54
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Yip writes:

> Say a user is resizing the base widget. They aren't really moving
> it but they have the mouse button depressed. My code explicitly
> changes the base widget size with widget_control. The widget obvious
> can't change since it's being overrode by the window manager. The
> problem is, when I do a widget_info call, the response I get is the
> size that I tried to set it to instead of the actual size. For
> example, the window is 300 pixels high. I try to change it to 600,
> but it doesn't change because the user is holding down the mouse
> button. When I query the size, IDL tells me it's 600 when in reality
> it's 300. How can I get a widget's real size and not what IDL thinks
> it is?

Say what!? The only way I know to get a resize event into
an event handler is *after* the resize takes place. How,
exactly, does this program of yours work? :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to get actual widget size?
Next Topic: Re: vector of complex arrays

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

Current Time: Wed Oct 08 18:44:19 PDT 2025

Total time taken to generate the page: 0.00542 seconds