XUIColorPickerColorDotCanvas
Inherits DesktopCanvas
Description
A canvas that contains a row of XUIColorPickerColorDots.
Properties
Name | Type | Read-Only |
---|---|---|
DotDiameter | Integer |
|
GapWidth | Integer |
|
mDidMouseDownOverColorDot | Boolean |
|
mDotDiameter | Integer |
|
mDots() | XUIColorPickerColorDot |
|
mGapWidth | Integer |
|
mSelectedDotCentreColor | ColorGroup |
|
mSelectedDotShadowBrush | ShadowBrush |
|
mSelectedIndex | Integer |
|
mShouldRecomputeBounds | Boolean |
|
SelectedIndex | Integer |
Methods
Name | Parameters | Returns |
---|---|---|
AddDot | dot As XUIColorPickerColorDot |
|
ComputeBounds | g As Graphics |
|
Constructor | ||
RemoveAllDots | ||
SelectedDot | XUIColorPickerColorDot |
Events
Name | Parameters | Returns |
---|---|---|
PressedColorDot | dot As XUIColorPickerColorDot |
Constants
Name | Type |
---|---|
SELECTION_DOT_DIAMETER | Double |
SELECTION_DOT_DIAMETER As Double The diameter of the dot drawn in the centre of the selected dot.
Property Descriptions
DotDiameter As Integer
The diameter of each colour dot.
GapWidth As Integer
The gap between the color dots.
mDidMouseDownOverColorDot As Boolean
True if the user clicked over a color dot during the last MouseDown
event.
mDotDiameter As Integer
The diameter of each colour dot.
mDots() As XUIColorPickerColorDot
Available color dots. Left = Color, Right = Name
mGapWidth As Integer
The gap between the color dots.
mSelectedDotCentreColor As ColorGroup
The colour to use for the selection marker in the centre of selected dots.
mSelectedDotShadowBrush As ShadowBrush
A precomputed shadow brush for the selected colour dot.
mSelectedIndex As Integer
The index of the currently selected dot.
mShouldRecomputeBounds As Boolean
If True then the bounds of the colour dots will be recomputed during the next Paint
event.
SelectedIndex As Integer
The index of the currently selected colour dot.
Method Descriptions
AddDot(dot As XUIColorPickerColorDot)
Adds a new color dot to the canvas.
ComputeBounds(g As Graphics)
Computes the bounds of each of the colour dots.
Constructor()
Default constructor.
RemoveAllDots()
Removes all the dots from the canvas.
SelectedDot() As XUIColorPickerColorDot
Returns the currently selected colour dot. This should be considered read only. Returns Nil if nothing selected.
Event Descriptions
PressedColorDot(dot As XUIColorPickerColorDot) The user just pressed a color dot.