4
namespace TestApp.Sharp
6
public class Test_TextBox
8
public static void Test()
10
TextBox text = Gui.Instance.CreateWidget<TextBox>("TextBox", new IntCoord(320, 220, 100, 100), Align.Default, "Main");
11
text.Caption = "TextBox";
13
Colour colour = text.TextColour;
14
text.TextColour = Colour.White;
16
Align align = text.TextAlign;
17
text.TextAlign = Align.Center;
19
text.FontHeight = text.FontHeight + 1;
20
string font = text.FontName;
21
text.FontName = "Default";
23
IntSize size = text.GetTextSize();
24
IntCoord coord = text.GetTextRegion();