From RAD Studio API Documentation
Jump to: navigation, search


typedef void __fastcall (__closure *TGrpButtonDrawIconEvent)(System::TObject* Sender, int Index, Vcl::Graphics::TCanvas* Canvas, const System::Types::TRect &Rect, Vcl::Categorybuttons::TButtonDrawState State, int &TextOffset);


Type Visibility Source Unit Parent
typedef public Vcl.ButtonGroup.hpp Vcl.ButtonGroup Vcl.ButtonGroup


TGrpButtonDrawIconEvent is the type of Button Group OnDrawIcon event handler.

TGrpButtonDrawIconEvent defines the type of method procedure that you must define in order to implement the OnDrawIcon event, which is called when a button icon is drawn or redrawn.

This event is invoked once per button icon in the button group.

Sender is a reference to the TButtonGroup invoking the event.

Index is the index of the button in the button group.

Canvas is the canvas on which the drawing takes place.

State defines the state of the button to be drawn.

TextOffset defines the offset of the button text in pixels.

See Also