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

Home » Public Forums » archive » Widget_list keeps changing size, what should I do?
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
Widget_list keeps changing size, what should I do? [message #89852] Wed, 10 December 2014 20:25 Go to next message
huangsu is currently offline  huangsu
Messages: 10
Registered: November 2014
Junior Member
Dear gurus,

I have a widget_list created with a given size, it appears ok when first shown up. However, whenever I set the value of the list by:

WIDGET_CONTROL, mylist, SET_VALUE=strarray

The size of the widget_list is automatically changed. How can I prevent it changing the size?

I am using IDL 8.4 on Linux Debian wheezy with Xfce.
Re: Widget_list keeps changing size, what should I do? [message #89854 is a reply to message #89852] Thu, 11 December 2014 03:58 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
Hi Sullivan,

did you specify SCR_XSIZE or XSIZE and SCR_YSIZE or YSIZE when calling
WIDGET_LIST? This should result in a fixed width and height of the
widget. Alternativly you can use the WIDGET_CONTROL function to set
this parameters.

Cheers, Heinz
Re: Widget_list keeps changing size, what should I do? [message #89865 is a reply to message #89854] Thu, 11 December 2014 22:50 Go to previous message
huangsu is currently offline  huangsu
Messages: 10
Registered: November 2014
Junior Member
Hi Heinz,

Thanks for replying. I figured out the problem accidentally:) This is an interesting problem. I did defined x/ysize during widget_list creation. The issue is I put a widget_tree and a widget_list side by side within one single widget_base. When interacted on a tree node caused the tree node expanded, the size of the widget_tree might be changed which caused the widget_base to rearrange its geometry, then the x/ysize of the widget_list were somehow abandoned, I guess. Consequently the size of the widget_list was changed to fit the new list content.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Refresh status of a FG window
Next Topic: plot positional degrees

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

Current Time: Wed Oct 08 07:14:35 PDT 2025

Total time taken to generate the page: 0.00465 seconds