diff options
| author | xue <> | 2005-12-30 00:38:04 +0000 | 
|---|---|---|
| committer | xue <> | 2005-12-30 00:38:04 +0000 | 
| commit | 341cd739bae562f8460fddc08b14a97833225a9e (patch) | |
| tree | e1a2f86367c1d9f89d0e8b42bb61a29211e42f9b /demos/quickstart/protected/pages/Controls/Samples/TTextBox | |
| parent | cdfe42047b3988152afaff124b0f9e8b34ab7f13 (diff) | |
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TTextBox')
| -rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page | 81 | ||||
| -rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php | 16 | 
2 files changed, 97 insertions, 0 deletions
| diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page new file mode 100644 index 00000000..43ab16f7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.page @@ -0,0 +1,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>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php new file mode 100644 index 00000000..5f812c9e --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Samples.php @@ -0,0 +1,16 @@ +<?php
 +
 +class Samples extends TPage
 +{
 +	public function textChanged($sender,$param)
 +	{
 +		$sender->Text="text changed";
 +	}
 +
 +	public function submitText($sender,$param)
 +	{
 +		$this->TextBox1->Text="You just entered '".$this->TextBox1->Text."'.";
 +	}
 +}
 +
 +?>
\ No newline at end of file | 
