Widget Weirdness [message #65670] |
Thu, 12 March 2009 15:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I just ran into this problem on my Linux machine. I wonder
if someone can help me test. I ran my Coyote program
PickColorName:
IDL> c = pickcolorname()
This puts a widget up in the center of the display. I
then move it off to the side and pick a color. As soon
as I do, the widget jumps back to the center of the
display. This is decidedly NOT what it is suppose to do!
I've traced the program (believe it or not) to a command
in which I am changing the text on a label widget. I have
confirmed this behaviour with an entirely different program.
It, too, jumps if I try to change a widget label's text.
Is this a function of my window manager (SUSE 10.? and
KDE 3.5, I believe), or is this a UNIX (possibly Mac)
problem in general? If it is a general bug, I would
like to report it.
Thanks,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: Widget Weirdness [message #85060 is a reply to message #65670] |
Thu, 27 June 2013 21:24  |
Matthew Argall
Messages: 286 Registered: October 2011
|
Senior Member |
|
|
I just ran into this problem. It still exists.
{ x86_64 darwin unix Mac OS X 8.0 Jun 17 2010 64 64}
Summary
* Use [XY]OFFSET in tlb
* Use /DYNAMIC_RESIZE in WIDGET_LABEL
* Realize widget & move to new location
* Change the value of the widget label (so that the length changes significantly)
--> Widget jumps back to original location.
Fix:
a) Do not use [XY]OFFSET in the tlb
b) Use XSIZE instead of DYNAMIC_RESIZE for the widget label.
|
|
|