Advanced JavaScript Library
 
 
 
System.Controls.ColorPicker
Home > Documentation > 3.0 Controls > System.Controls.ColorPicker
Developed by Exbos Limited.

Summary
The color picker creates an area where the user can choose a Color from a preset, or custom list, or enter an RGB or HEX value for their Color. The control can be used with the dialog control to present the user with a Color picker pop up.

Example
var colorExample;

// Create Color Picker
colorExample = System.CreateObject("System.Controls.CheckBox");
colorExample.Initialize();
Methods
Initialize GetColor SetColor

Events
This class has no events.


Initialize ()

Summary
The Initialize method is supported by all controls that inherit from the System.Controls.Control class. The method performs the actual creation of the control and the attachment to the document object model. The call is often overridden by its child classes to perform any additional object initialization that might be required.

Parameters
This method has no parameters.

Return Value
This method does not return a value.

Example
var colorExample;

// Create Color Picker
colorExample = System.CreateObject("System.Controls.CheckBox");
colorExample.Initialize();
GetColor ()

Summary
This method returns the hex code of the currently selected color in string format. Only one Color can be selected at once.

Parameters
This method has no parameters.

Return Value
The currently selected Color from the control.

Example
var colorExample;

// Create Color Picker
colorExample = System.CreateObject("System.Controls.ColorPicker");
colorExample.Initialize();

// Show Text
System.MessageBox("Color", colorExample.GetColor());
SetColor (sColor)

Summary
This method sets the color represented by the Color picker to the value provided. The value should be a hex code in #RRGGBB format as per the general standard.

Parameters
Parameter Description
sColor The hex code of the Color to be set.

Return Value
This method does not return a value.

Example
var colorExample;

// Create Color Picker
colorExample = System.CreateObject("System.Controls.ColorPicker");
colorExample.Initialize();

// Set Color
colorExample.SetColor("#FF0000");
 
Shopping Basket
Your shopping basket is currently empty.
 
 
RSS Feed   Powered By Commerce Cloud
This site is powered by the Commerce Cloud Engine. Copyright (c) 2009 Exbos Limited. All Rights Reserved. SiteMap   Cookie Policy
Web site design and layout by Exbos Ltd. Copyright (c) 2010 Exbos Ltd. All Rights Reserved.
Exbos Ltd providing Bespoke Software Design and Build in Leeds and West Yorkshire for the whole of the UK