GuiMLTextCtrl / GuiMLTextEditCtrl Tags and Profile Properties
by Matthew Langley · in Torque Game Builder · 08/31/2006 (1:11 pm) · 6 replies
GuiMLTextCtrl / GuiMLTextEditCtrl Tags:
==============
- Insert a new line
-----------------------------------------------------------------------------------------
Profile Properties
============
tab - True if this object is accessable from using the tab key
canKeyFocus - True if the object can be given keyboard focus (in other words, made a first responder
mouseOverSelected - True if this object should be "selected" while the mouse is over it
modal - True if this is a Modeless dialog meaning it will pass input through instead of taking it all
opaque - True if this object is not translucent
fillColor - Fill color, this is used to fill the bounds of the control if it is opaque
fillColorHL - This is used insetead of fillColor if the object is highlited
fillColorNA - This is used to instead of fillColor if the object is not active or disabled
border - For most controls, if mBorder is > 0 a border will be drawn, some controls use this to draw different types of borders however
borderThickness - Border thickness
borderColor - Border color, used to draw a border around the bounds if border is enabled
borderColorHL - Used instead of borderColorwhen the object is highlited
borderColorNA - Used instead of mBorderColor when the object is not active or disabled
bevelColorHL - Used for the high-light part of the bevel
bevelColorLL - Used for the low-light part of the bevel
fontType - Font face name for the control
fontSize - Font size for the control
fontCharset - Font character set
fontColors - Array of font colors used with escape characters for changing color mid-string
fontColor - Main font color
fontColorHL - Highlited font color
fontColorNA - Font color when object is not active/disabled
fontColorSEL - Font color when object/text is selected
fontColorLink - Font color for hyperlinks
fontColorLinkHL - Font color when a hyperlink is highlited
justify - Alignment of text in a text control
textOffset - Offset of text in a text control
autoSizeWidth - Auto-size the width-bounds of the control to fit it's contents
autoSizeHeight - Auto-size the height-bounds of the control to fit it's contents
returnTab - Used in GuiTextEditCtrl to specify if a tab-event should be simulated when return is pressed.
numbersOnly - For text controls, true if this should only accept numerical data
cursorColor - Color for the blinking cursor in text fields (for example)
bitmap - Bitmap file name for the bitmap of the control
soundButtonDown - Sound played when the object is "down" ie a button is pushed
soundButtonOver - Sound played when the mouse is over the object
-------------------------------------
Can you create a new profile? Yes you can, but you must load the TorqueScript file containing it before you load the GUI file that makes reference to it.
About the author
Was a GG Associate and then joined GG in 2005. Lead tool dev for T2D and T3D. In 2011 joined mobile company ngmoco/DeNA and spent about 4 years working game and server tech. 2014 joined startup Merigo Games developing server technology.
Is there any tags to make certain text underlined or displayed in italics?
If I want that certain word on the displayed text are clickable, what tags do I need to use?
many thanks,
To make text clickable, you use the "a:" tag. In general, I've found this TDN page to be most useful.
if I use GuiMLTextProfile for my GuiMLTextCtrl, an "a:" tag will automatically set the word clickable AND underlined at the same time.
Using another profile however (or defining a custom profile with different font) might not yield the same result..;-)
I am tring to open URL page inside t2dSceneWindow. How to do this? Anybody has an idea. For example.. If I click on link to open garagegames.com, so it shouldnot open a new window with garagegames.com..instead it should open url page inside t2dSceneWindow created under Gui.
Please help me. Thanks.
www.torquepowered.com/community/blogs/view/13710
Also, you shouldn't make multiple posts with the same question. The forums can already get clogged up with questions, and with the better searching now, you should only need to put this one place.
Associate David Higgins
DPHCoders.com