YOUSEFUL / DELPHI / COMPONENTS
TAtlasGridMessageEvent
Method type of TAtlasVirtualGrid.OnEditError: the reason a value was refused.
Description
TAtlasGridMessageEvent = procedure(Sender: TObject; const Message: string) of object; Sender is the grid and Message the text of the EAtlasGridError that refused the value; LastError holds the same text.
This type has no members of its own beyond those listed in its description.
Examples
Show why an edit was refused
From the VirtualAndPlotGrid sample, assigned to OnEditError of both grids.
uses Vcl.StdCtrls, Atlas.VGrid;
procedure TVirtualPlotForm.EditRejected(Sender: TObject; const Message: string);
begin
FStatus.Caption := 'Not accepted: ' + Message;
end;
Related
TAtlasVirtualGrid · EAtlasGridError
Also in Atlas Virtual Grid
TAtlasVirtualGrid · TAtlasMemoryData · TAtlasVirtualData · TAtlasPlotData