Class: cWebColorPicker
Properties | Events | Methods | Index of Classes
Renders an inline color picker control that allows the user to select a color using a HSL system
Hierarchy
cObject > cWebBaseObject > cWebObject > cWebBaseUIObject > cWebBaseDEOServer > cWebBaseControl > cWebColorPicker
Show full hierarchy and direct subclasses
- cObject
- cWebBaseObject
- cWebObject
- cWebBaseUIObject
- cWebBaseDEOServer
- cWebBaseControl
- cWebColorPicker
Library: Web Application Class Library
Package: cWebColorPicker.pkg
Description
The cWebColorPicker control renders an inline color picker control that allows the user to select a color using a HSL (hue, saturation, lightness) system. A map allows the selection of the Hue and Lightness and a slider determines the Saturation. The result is a color code represented as a HEX RGB string or regular RGB string that can be used within web applications on properties like psTextColor and psBackgroundColor.

The value can be set / read using the psValue property. The height can be controlled using piHeight and pbFillHeight. Optionally, a color bar with the selected color and a palette of predefined colors can be shown. A popup version of the color picker is available as the cWebColorForm class.
Drag and Drop Support
This control can be used as a valid drop target by registering it as such in a cWebDragDropHelper object.
The supported actions for this control are: - C_WebDropOnControl
This allows the control to accept data dragged from elsewhere in the control (if configured that way) and can also be used to accept files when registered within a cWebDragDropFileHelper.