GUIListBoxCtrl problems
by Vern Jensen · in Torque Game Builder · 05/07/2009 (1:05 am) · 2 replies
I've got a number of issues with my GUILIstBoxCtrl that I can't figure out how to solve:
1) When I create it (inside a dialog box that has a GuiBitMapCtrl as the background), there is no border. Nothing is drawn except for the text in the list. (And it highlights properly.)
2) Its bounds are re-sized to fit the width of the longest item of text, and the height of the number of items in the list. If I have a lot of items, it's height extends past the bounds of my dialog box. I've put "autoSizeWidth" and "autoSizeHeight" in my profile false, to no effect. The "Extent" and "MinExtent" are both set to 200, 300 but this has no effect. I've tried both "right" and "width" for the HorizSizing pop-up, and top and height for VertSizing.
The Profile I'm using is below. So far it seems only fontColor and fillColor have any effect on color of things. BorderColor seems to have no effect -- I see no border. Ideas???
1) When I create it (inside a dialog box that has a GuiBitMapCtrl as the background), there is no border. Nothing is drawn except for the text in the list. (And it highlights properly.)
2) Its bounds are re-sized to fit the width of the longest item of text, and the height of the number of items in the list. If I have a lot of items, it's height extends past the bounds of my dialog box. I've put "autoSizeWidth" and "autoSizeHeight" in my profile false, to no effect. The "Extent" and "MinExtent" are both set to 200, 300 but this has no effect. I've tried both "right" and "width" for the HorizSizing pop-up, and top and height for VertSizing.
The Profile I'm using is below. So far it seems only fontColor and fillColor have any effect on color of things. BorderColor seems to have no effect -- I see no border. Ideas???
if(!isObject(GameListBoxProfile)) new GuiControlProfile (GameListBoxProfile)
{
fontType = "Boombox";
fontSize = 25;
fontColor = "255 255 0";
fillColor = "0 0 255 255"; // When it's selected
fillColorHL = "0 0 255 90"; // For when the button is pushed, not highlighted
fillColorNA = "255 255 255"; // UNUSED?
borderColor = "255 255 255";
borderColorHL = "180 180 180"; // For when the button is pushed, not highlighted
fontColorHL = "255 120 120";
fontColorNA = "128 128 128"; // UNUSED?
// mouseOverSelected = true;
justify = "center";
autoSizeWidth = false;
autoSizeHeight = false;
};
#2
http://tdn.garagegames.com/wiki/TGB/MiniTutorials/GUIListEdit
05/07/2009 (11:03 am)
Huh, doesn't seem like the tutorial can be edited? (If so, where is the edit link?)http://tdn.garagegames.com/wiki/TGB/MiniTutorials/GUIListEdit
Torque Owner Vern Jensen
The tutorial I was using didn't mention anything about this, hence why I was confused. I'll update it.