Widget_list keeps changing size, what should I do? [message #89852] |
Wed, 10 December 2014 20:25  |
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 #89865 is a reply to message #89854] |
Thu, 11 December 2014 22:50  |
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.
|
|
|