Game Development Community

GUI Multi-Line Edit Control?

by DavidRM · in Torque Game Engine · 04/18/2002 (4:00 pm) · 4 replies

Do the standard GUI controls include a multi-line edit control?

I've done some experimenting with GUI controls that (based on their name) seem to be multi-line edits...but no dice. And scouring the forums and resources hasn't provided any clues.

Any assistance would be appreciated.

-David
Samu Games

#1
04/18/2002 (4:42 pm)
Nope. Im currently working on one for our project...just need to get scrolling implemented for it. Unfortunately its gonna be closed source though, but if you take a look at the Guitextedit control and guiscroll it should give you an idea of how to do it.

-Tim aka Spock
#2
04/18/2002 (10:16 pm)
The guiMLTextEditCtrl does work. The problem was that it lacked a guiProfile. Use the following to get it to work:

if(!isObject(GuiMLTextEditProfile)) new GuiControlProfile (GuiMLTextEditProfile)
{
fontColorLink = "255 96 96";
fontColorLinkHL = "0 0 255";

fillColor = "255 255 255";
fillColorHL = "128 128 128";

fontColor = "0 0 0";
fontColorHL = "255 255 255";
fontColorNA = "128 128 128";

autoSizeWidth = true;
autoSizeHeight = true;
tab = true;
canKeyFocus = true;
};

Add that to your defaultProfile.cs then to load the game, make a GUI add a guiControl, set it active, add a scroll control, set it active then add the guiMLTextEditCtrl.

Quote:
+-guiControl
+-ScrollControl
+-guiMLTextEditCtrl
#3
04/19/2002 (11:26 am)
Harold,

Rock on! Thanks!

-David
Samu Games
#4
04/19/2002 (12:48 pm)
I just added this profile to the CVS head... thanks LabRat!