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

Home » Public Forums » archive » Re: Widget Weirdness
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 Weirdness [message #65642] Fri, 13 March 2009 12:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> *NOW* what happens is that the widget jumps back to
> its starting position, but only *SOME* of the time.
> This is unreal!! Apparently now there is some interaction
> going on, such that if the text of the label widget changes
> its length "appreciably" then this jumpy behavior occurs,
> but if the text is the same length as the previous text,
> the jumpy behavior doesn't occur.

OK, I think I have a handle on this now. On UNIX,
if you position a TLB widget on the display with
XOFFSET and YOFFSET keywords, and that widget program
has a label widget rendered in its "natural" size
(ie., you have not specified a size), and the label widget
has the DYNAMIC_RESIZE keyword set for it, then if you
change the text on that label widget to an appreciably
different size, the TLB widget will jump back to its
original starting position.

One way around the problem is to assign a size to the
label widget. Another way around the problem is
to not position the TLB widget on the display (ugly).

If you think I have gone completely off my rocker,
you can have a look yourself. You can find my test
program here:

http://www.dfanning.com/misc/jumpywidget.pro

Run it like this:

IDL> void = jumpywidget()

Or, to see it work correctly:

IDL> void = jumpywidget(/NoJumping)

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mac Widget Limitation?
Next Topic: Double precision

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

Current Time: Wed Oct 08 15:22:45 PDT 2025

Total time taken to generate the page: 0.00468 seconds