Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxSlidesGridView6 OnGetSlideColor

OnGetSlideColor

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