OnCustomDrawIndicator
Event called on an indicator cell being drawn.
pas
property OnCustomDrawIndicator: TNxIndicatorDrawEvent read FOnCustomDrawIndicator write FOnCustomDrawIndicator;
Arguments
| Name | Meaning |
|---|---|
| Index | Index of the row being drawn |
| Selected | Indicates whether indicator currently being drawn is selected |
Example
pas
procedure TForm3.NextGrid61CustomDrawIndicator(Sender: TObject; Index: Integer;
IndicatorRect: TRect; Selected: Boolean);
var
CornerRect: TRect;
begin
if Selected then
begin
CornerRect := IndicatorRect;
CornerRect.Width := 4;
CornerRect.Height := 4;
NextGrid61.Canvas.Brush.Color := NextGrid61.Cell[5, Index].AsInteger;
NextGrid61.Canvas.FillRect(CornerRect);
end;
end;