Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxSlidesGridView6 OnGetSlideColor

OnGetSlideColor

An event called before background color of a slide is assigned for painting. Provides an opportunity for changing background color of slide.

pas
property OnGetSlideColor: TNxGetSlideColorEvent read FOnGetSlideColor write FOnGetSlideColor;

Event include Index parameter that identify index of slide being painted and var SlideColor parameter that can be set to desired TColor.

Example

pas
procedure TForm1.NxSlidesGridView61GetSlideColor(Sender: TObject; Index: Integer;
  var SlideColor: TColor; State: TNxSlideDrawState);
begin
  if Index = 1 then SlideColor := clCream;
end;

Sign in