Creation/Dev/Script/Client/GuiTextEditCtrl

From Graal Bible
Revision as of 23:56, 15 February 2010 by Pooper200000 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Inherits from GuiTextCtrl.

Description

Guicontrol edit.png

This control displays text, a cursor and a box around it and lets you edit the text.


Variables

deniedsound - string

historysize - integer

password - boolean - replaces text with asterisks.

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";
}