Creation/Dev/Script/Client/GuiTextEditCtrl: Difference between revisions

From Graal Bible
No edit summary
(Added picture, description and an example script)
Line 1: Line 1:
Inherits from [[Creation/Dev/Script/Client/GuiTextCtrl|GuiTextCtrl]].
Inherits from [[Creation/Dev/Script/Client/GuiTextCtrl|GuiTextCtrl]].
=Description=
[[Image:Guicontrol_edit.png]]
This control displays text, a cursor and a box around it and lets you edit the text.


=Variables=
=Variables=
Line 24: Line 31:


onAction(newtext) - the enter-key has been pressed
onAction(newtext) - the enter-key has been pressed
=Example=
<pre>
new GuiTextEditCtrl("Test_Edit") {
  profile = GuiBlueTextEditProfile;
  x = 10;
  y = 10;
  width = 160;
  height = 20;
  text = "Edit";
}
</pre>

Revision as of 19:22, 16 September 2006

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

tabcomplete - boolean


Functions

setselection(int, int)

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