end;
TUndoClass = class(TComponent)
- const
- Max = 5;
private
+ FMax: integer;
FStack: TObjectStack;
FReStack: TObjectStack;
FMemo: TCustomMemo;
property Memo: TCustomMemo read FMemo write SetMemo;
property CanUndo: Boolean read GetCanUndo;
property CanRedo: Boolean read GetCanRedo;
+ property Max: integer read FMax write FMax;
end;
implementation
constructor TUndoClass.Create(AOwner: TComponent);
begin
inherited;
+ FMax := 5;
FStack := TObjectStack.Create;
FReStack := TObjectStack.Create;
end;
object ToolButton8: TToolButton
Left = 56
Top = 0
+ Hint = 'Undo'
Action = Action3
Enabled = False
ImageIndex = 4
object ToolButton11: TToolButton
Left = 87
Top = 0
+ Hint = 'Redo'
Action = Action5
Enabled = False
ImageIndex = 1
Left = 200
Top = 88
Bitmap = {
- 494C010106000800940010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
+ 494C010106000800980010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
0000000000003600000028000000400000002000000001002000000000000020
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000