TTMSFNCColorWheel Class
Interactive color wheel component for selecting colors via HSB wheel, RGB sliders, and hex input.
API unit family: TMSFNCColorWheel
Inherits from: TTMSFNCCustomColorWheel
Syntax
TTMSFNCColorWheel = class(TTMSFNCCustomColorWheel)
Properties
| Name |
Description |
| BValue |
Blue channel value (0–255) of the currently selected color. (inherited from TTMSFNCCustomColorWheel) |
| Font |
Font used to draw the R, G, B, and HEX labels on the control. (inherited from TTMSFNCCustomColorWheel) |
| GValue |
Green channel value (0–255) of the currently selected color. (inherited from TTMSFNCCustomColorWheel) |
| HEXValue |
Hexadecimal string representation of the currently selected color. (inherited from TTMSFNCCustomColorWheel) |
| RValue |
Red channel value (0–255) of the currently selected color. (inherited from TTMSFNCCustomColorWheel) |
| SelectedColor |
Currently selected color, updated when the user picks from the wheel or adjusts sliders. (inherited from TTMSFNCCustomColorWheel) |
Methods
| Name |
Description |
| ColorToBValue |
Extracts the blue channel byte from the given color value. (inherited from TTMSFNCCustomColorWheel) |
| ColorToGValue |
Extracts the green channel byte from the given color value. (inherited from TTMSFNCCustomColorWheel) |
| ColorToRValue |
Extracts the red channel byte from the given color value. (inherited from TTMSFNCCustomColorWheel) |
| RGBToGraphicsColor |
Composes a color value from separate red, green, and blue channel bytes. (inherited from TTMSFNCCustomColorWheel) |
Events
| Name |
Description |
| OnAfterDrawSelectedColorPanel |
Fires after the selected-color preview panel is drawn. (inherited from TTMSFNCCustomColorWheel) |
| OnBValueChanged |
Fires when the blue channel value changes. (inherited from TTMSFNCCustomColorWheel) |
| OnBeforeDrawSelectedColorPanel |
Fires before the selected-color preview panel is drawn, allowing custom drawing. (inherited from TTMSFNCCustomColorWheel) |
| OnGValueChanged |
Fires when the green channel value changes. (inherited from TTMSFNCCustomColorWheel) |
| OnRValueChanged |
Fires when the red channel value changes. (inherited from TTMSFNCCustomColorWheel) |
| OnSelectedColorChanged |
Fires when the user selects a new color from the wheel or sliders. (inherited from TTMSFNCCustomColorWheel) |