Creation/Dev/Script/Client/GuiTextEditCtrl: Difference between revisions
From Graal Bible
(Added picture, description and an example script) |
No edit summary |
||
Line 21: | Line 21: | ||
=Functions= | =Functions= | ||
setselection(int, int) | setselection(int, int) - start, length | ||
undo() | undo() |
Revision as of 15:36, 11 June 2008
Inherits from GuiTextCtrl.
Description
This control displays text, a cursor and a box around it and lets you edit the text.
Variables
deniedsound - string
historysize - integer
password - boolean
tabcomplete - boolean
Functions
setselection(int, int) - start, length
undo()
Events
onTabComplete() - the tab key has been pressed (when tabcomplete=true)
onAction(newtext) - the enter-key has been pressed
Example
new GuiTextEditCtrl("Test_Edit") { profile = GuiBlueTextEditProfile; x = 10; y = 10; width = 160; height = 20; text = "Edit"; }