Game Development Community

GUI Editor Control Resizing Problem

by Brian C. · in Torque Game Engine · 02/14/2007 (7:53 am) · 4 replies

Hi,
I am having a hard time trying to figure out how to do something simple in the GUI Editor: change the size of a control. In particular, I'm modifying the driver info control in the FPS Starter's Audio Options pane (because it overlaps the master volume slider). It refuses to let me change its vertical size, no matter what I do! If I type a new size in the extents field, it disregards what I type; if I use the double-arrow cursor over the edge to resize it, it doesn't resize. When I try resizing it horizontally, the vertical size changes as if to maintain the same area within the control (e.g. it gets taller if I shorten it horizontally and vice versa). I can't find an explanation of the different VertSizing parameters (bottom, height, etc.) so I tried them all and it behaves the same with all of them. All I want to do is resize the vertical height independent of the horizontal height, thanks for your help!

#1
02/14/2007 (8:52 am)
The reason for this, is because the driver info control is a GuiTextControl.

GuiTextControl and GuiMLTextControl do not allow for resizing of vertical bounds since they are autosized based on how much text is used to fill out its data field.

*EDIT*-
Bottom, height, and so on, are used for resizing based on resolution change and parent size change, so those won't help you.
#2
02/14/2007 (8:50 pm)
Thanks Michael. Is there a text control that does allow for resizing? Or, alternatively, is there a way to tell the GuiTextControl or GuiMLTextControl to adjust its size so that it doesn't overlap another control in the same menu?
#3
02/15/2007 (5:23 am)
Not that I've found, unless you edit the engine code. The best way to avoid overlapping is just to arrange your GUI controls so that the situation won't occur, or layer them so that the clickable controls are above any text controls.
#4
02/15/2007 (10:46 am)
Thanks for the help.