Game Development Community

Command resizing of GuiControl

by Xavier "eXoDuS" Amado · in Torque Game Engine · 01/09/2003 (9:03 pm) · 1 replies

Has anyone else noticed that if you resize a GuiControl using the console command, the horizontal and vertical sizing parameters are omitted.
For example, myctrl.resize(500,500, 100, 100); would place a guicontrol touching the bottom right corner if you are using relative as your horizontal and vertical sizing methods. Now if you really try that you will see that the control isn't placed there but instead it's placed on the screen using real coordinates... so if you have a 1024x768 resolution, you would be seeing it in the middle of the screen.
I took a quick gaze at the code but couldn't see anything obvious. Anyone else has looked into this?