home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Cell Control / DATA1.CAB / DELPHIDM / Uundo.pas < prev   
Encoding:
Pascal/Delphi Source File  |  1998-01-11  |  897 b   |  49 lines

  1. unit Uundo;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Tempunit, ComCtrls, StdCtrls, Buttons, OleCtrls, CELLLib_TLB, ExtCtrls;
  8.  
  9. type
  10.   TFUndo = class(TTemplate)
  11.     BitBtn2: TBitBtn;
  12.     BitBtn3: TBitBtn;
  13.     BitBtn4: TBitBtn;
  14.     procedure BitBtn2Click(Sender: TObject);
  15.     procedure BitBtn3Click(Sender: TObject);
  16.     procedure BitBtn4Click(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   FUndo: TFUndo;
  25.  
  26. implementation
  27.  
  28. {$R *.DFM}
  29.  
  30. procedure TFUndo.BitBtn2Click(Sender: TObject);
  31. begin
  32.   inherited;
  33.         Cell1.DoUndo;
  34. end;
  35.  
  36. procedure TFUndo.BitBtn3Click(Sender: TObject);
  37. begin
  38.   inherited;
  39.               Cell1.DoRedo;
  40. end;
  41.  
  42. procedure TFUndo.BitBtn4Click(Sender: TObject);
  43. begin
  44.   inherited;
  45.       Cell1.DoDiscardUndo;
  46. end;
  47.  
  48. end.
  49.