RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ButtonGroup.TGrpButtonDrawIconEvent Type

TGrpButtonDrawIconEvent is the type of Button Group OnDrawIcon event handler.

Pascal
TGrpButtonDrawIconEvent = procedure (Sender: TObject; Index: Integer; Canvas: TCanvas; Rect: TRect; State: TButtonDrawState; var TextOffset: Integer) of object;
C++
(Sender: TObject; Index: Integer; Canvas: TCanvas; Rect: TRect; State: TButtonDrawState; var TextOffset: Integer) ( TGrpButtonDrawIconEvent)();

ButtonGroup

TGrpButtonDrawEvent 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 state of the button to be drawn. 

TextOffset defines the offset of the button text in pixels. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!