blob: 43ab16f79e7c5b2d44fd5651dde5eb7ec2ea7513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<com:TContent ID="body">
<h1>TTextBox Samples</h1>
<div class="samplepanel">
<div class="sampletitle">SingleLine and Password Text Boxes</div>
Text box with default settings:
<com:TTextBox />
<br/>
Password text box:
<com:TTextBox TextMode="Password" />
<br/>
Text box with customized color, font, columns, maximum length:
<com:TTextBox
Text="text"
ForeColor="yellow"
BackColor="blue"
Font.Size="14pt"
Columns="4"
MaxLength="6"
/>
<br/>
Disabled text box:
<com:TTextBox Text="disabled" Enabled="false" />
<br/>
Read-only text box:
<com:TTextBox Text="read only" ReadOnly="true" />
<br/>
Auto postback text box:
<com:TTextBox Text="change me" AutoPostBack="true" TextChanged="textChanged" />
<br/>
Text box's behavior upon postback:
<com:TTextBox ID="TextBox1" Text="text" />
<com:TButton Text="Submit" Click="submitText" />
</div>
<div class="samplepanel">
<div class="sampletitle">MultiLine Text Boxes</div>
Text box with default settings:<br/>
<com:TTextBox TextMode="MultiLine" />
<br/>
Text box with customized dimensions, font and content:<br/>
<com:TTextBox TextMode="MultiLine" Rows="6" Columns="60" Font.Italic="true">
<prop:Text>
This is a multiline text box.
In HTML, it is displayed as a textarea.
</prop:Text>
</com:TTextBox>
<br/>
Disabled text box:<br/>
<com:TTextBox
TextMode="MultiLine"
Text="disabled"
Enabled="false" />
<br/>
Read-only text box with text-wrapping disabled:<br/>
<com:TTextBox
TextMode="MultiLine"
Text="This is a read-only text box with text-wrapping disabled."
ReadOnly="true"
Wrap="false"/>
<br/>
Auto postback text box:<br/>
<com:TTextBox TextMode="MultiLine" Text="change me" AutoPostBack="true" TextChanged="textChanged" />
<br/>
</div>
</com:TContent>
|