TcxEditButtonGlyphDrawParametersEvent Type
The procedural type for editor button glyph parameter customization events.
Declaration
TcxEditButtonGlyphDrawParametersEvent = procedure(Sender: TObject; AButtonIndex: Integer; AState: TcxEditButtonState; var AGlyph: TGraphic; var APalette: IdxColorPalette) of object;
Parameters
Name | Type | Description |
---|---|---|
Sender | TObject | The editor that raised the button glyph parameter customization event. Cast the Tip You can call the |
AButtonIndex | Integer | Returns the index of the button whose glyph appearance the |
AState | TcxEditButtonState | Returns the state of the currently processed editor button ( An editor button can be disabled, normal, pressed, or hot-tracked. |
AGlyph | TGraphic | Specifies the new glyph for the currently processed editor button ( |
APalette | IdxColorPalette | Specifies the new palette for a new or existing vector glyph of the currently processed editor button ( |
Remarks
An editor button glyph parameter customization event occurs every time an editor is about to draw an editor button glyph.
You can handle this event to change button glyph appearance for different editor buttons in different states. Refer to the TcxCustomEditProperties.OnButtonGlyphDrawParameters event description for a code example.
TcxEditButtonGlyphDrawParametersEvent Type References
The TcxCustomEditProperties.OnButtonGlyphDrawParameters event references the TcxEditButtonGlyphDrawParametersEvent
procedural type.