Undo/Redo for FNC Grid

I'm investigating implementing undo/redo for the grid in my app. Looking at the source the TTMSFNCUndoManager isn't currently available for WEBLIB. Given that TTMSFNCUndoManager uses streams and the pas2js compiler looks like it'll have stream support soon, will TTMSFNCUndoManager be implemented for TMS Web?

Are there any demos of using TTMSFNCUndoManager with the FNC grid?

Thanks, Bob

Hi,


We'll investigate the possibilities for adding TMS WEB Core support for the undo manager. Please be aware that the undo manager will only work on published properties. Here is a code snippet:



procedure TForm1.ChangeProp;
begin
  TMSFNCGrid1.Appearance.FixedLayout.Fill.Color := gcRed;
  u.PushState('Fixed Fill Modified');
end;


procedure TForm1.UndoChange
begin
  u.Undo;
end;


procedure TForm1.FormCreate(Sender: TObject);
begin
  u := TTMSFNCUndoManager.Create(TMSFNCGrid1);
  u.PushState('Original');
end;