From ad30a2e5e2bbe11908a78e7731ed5d2d8c55c9b9 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 19:49:56 +0000 Subject: added documentation for TColorPicker class --- .../protected/pages/Controls/ColorPicker.page | 29 +++++++++++++++-- .../pages/Controls/Samples/TColorPicker/Home.page | 37 ++++++++++++++++++++++ .../protected/pages/Controls/Standard.page | 2 +- 3 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/ColorPicker.page b/demos/quickstart/protected/pages/Controls/ColorPicker.page index cc931840..57c39857 100644 --- a/demos/quickstart/protected/pages/Controls/ColorPicker.page +++ b/demos/quickstart/protected/pages/Controls/ColorPicker.page @@ -3,8 +3,33 @@

TColorPicker

-

-TBD +

+TColorPicker displays a text box for color input purpose. +Next to the textbox there's a button filled with the current chosen color. +Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF). +
Alternatively, if the ShowColorPicker property is enabled (it is by default), users can click the button +to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.

+

+TColorPicker has three different color picker UI Modes:

+ + +

The CssClass property can be used to override the CSS class name +for the color picker panel. The ColorStyle property changes the overall color picker style. +The following ColorStyle values are available:

+ + +

If the Mode property is set to Full, the color picker panel will +display an "Ok" and "Cancel" buttons. You can customize the button labels setting the OKButtonText +and CancelButtonText properties.

+ + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page new file mode 100644 index 00000000..0a1f3705 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page @@ -0,0 +1,37 @@ + + +

TColorPicker Samples

+ + + + + + + + + + + + + + + + + + + + + + + +
Default TColorPicker, Mode="Basic" + +
Mode="Simple"
pre-selected red color
+ +
Mode="Full" + +
Disabled color picker panel: ShowColorPicker="false" + +
+ +
$Id: Home.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index 3b6079d6..38a541ca 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -23,7 +23,7 @@ TClientScriptLoader loads custom javascript libraries. -
  • * +
  • TColorPicker represents an input field taking color values via a color dialog.
  • -- cgit v1.2.3