Game Development Community

GuiTextEdit control

by Jason McIntosh · in Torque Game Builder · 07/06/2005 (10:58 am) · 7 replies

Does anyone know what the heck all those options are in the GuiTextEdit control? Like:

- variable
- altCommand
- validate
- escapeCommand
- sinkAllKeyEvents

It would be really useful to have some public record of what these are, so if you have info please post here for the love of god so we'll have some documentation for this cryptic stuff. Thanks!! :)

#1
07/06/2005 (11:06 am)
- variable

say you set this to "$text"

now when you update this textEdit it will update the $text variable with that value, vice versa, if you set $text = "text"; then refresh the gui it will update the edit control
#2
07/06/2005 (11:08 am)
- sinkAllKeyEvents

I beleive this will sink all of the key events into this control if checked, so will disable all other accelerator keys until you select another (this I haven't tested)
#3
07/06/2005 (11:15 am)
- validate

This is like command, it executes the command listed when it becomes or loses first responder and when you press enter...

- altCommand

This is like command, it runs the command, but only when you hit enter
#4
07/06/2005 (11:16 am)
- escapeCommand

Like the rest it runs whatever command you have listed, it happens when you hit the Esc button while in this control
#5
07/06/2005 (11:29 am)
Wow, thanks, Matthew!! You rule. Fast, too. :)
#6
02/07/2007 (12:17 am)
Just cross-referencing:
folks interested in this thread may also be interested in this one.
#7
02/26/2007 (10:26 pm)
Information about the GuiControl classes is slowly being filled in to the TDN. Start with the TGB_GUI_Overview and follow links from there.

GuiTextEdit may not be completely documented yet, but many of the questions asked in this thread are answered by reference to GuiControl, the base class of all Gui controls.