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
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
#2
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.
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
#4
04/19/2002 (12:48 pm)
I just added this profile to the CVS head... thanks LabRat!
Associate Tim Newell
Max Gaming Technologies
-Tim aka Spock