Creation/Dev/Script/Client/GuiTextCtrl: 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/GuiControl|GuiControl]].
Inherits from [[Creation/Dev/Script/Client/GuiControl|GuiControl]].
=Description=
[[Image:Guicontrol_text.png]]
Simply displays some text. By using the variables ''textshadow'', ''shadowoffset'' and ''shadowcolor'' of the [[Creation/Dev/Script/Client/GuiControlProfile|profile]] you can improve the look.




Line 17: Line 23:


onTextChanged(newtext) - the text has been modified
onTextChanged(newtext) - the text has been modified
=Example=
<pre>
new GuiTextCtrl("Test_Text") {
  profile = GuiBlueTextProfile;
  x = 10;
  y = 10;
  height = 20;
  text = "Text";
}
</pre>

Revision as of 19:08, 16 September 2006

Inherits from GuiControl.

Description

Guicontrol text.png

Simply displays some text. By using the variables textshadow, shadowoffset and shadowcolor of the profile you can improve the look.


Variables

text - string


Functions

gettext() - returns string

settext(str)


Events

onTextChanged(newtext) - the text has been modified


Example

new GuiTextCtrl("Test_Text") {
  profile = GuiBlueTextProfile;
  x = 10;
  y = 10;
  height = 20;
  text = "Text";
}