Game Development Community

[BUG] GuiListBoxCtrl loses extent when changing any other value

by Eric den Boer · in Torque 3D Professional · 12/14/2009 (4:34 am) · 2 replies

Hi,

The GuiListBoxCtrl is losing its extent values, even when saving the .gui file with the extent values. Changing any other property destroys its extent values as well.

To recreate: Create GuiListBoxCtrl, change extent in the editor, change the object's name and it changes its size in the editor.

#1
12/14/2009 (8:46 pm)
This is not a bug but rather inherent behavior of the control. It fits itself around its content, i.e. it stacks all the items it has and then computes how big it needs to be to fit around them.

//Edit: As for editing, changing properties in the editor triggers a size recompute on the control.
#2
12/15/2009 (10:58 am)

Note: To make a GuiListBoxCtrl only occupy a certain area on a GUI, put it inside a GuiControl. To allow scrolling the list box contents, put it inside a GuiScrollCtrl.