[lazarus] Form editing: Undo/Redo

Martyn Ranyard ranyardm at lineone.net
Thu Jun 20 04:45:48 EDT 2002

At 12:01 AM 6/20/02 +0200, Mattias Gaertner wrote:
>Hi all,
>I want to implement Undo/Redo for the form editing, but I'm not sure how 
>this should be done.
>Normally an undolist just keeps tracks of the changes. But for example 
>moving a control can result in changing other controls and many other 
>things. So, for a correct undo, one have to stream the form after every 
>move/resize/add/delete/change property operation. Or is there a better way?

Bear in mind that certainly in D5 and earlier, moving a control could not 
be undone, nor could creating one, only deletions were undoable.

Anything you do will almost certainly be better than Borland's "Ahh, it 
doesn't matter" attitude.


Martyn Ranyard
Free Software Advocate

icq - 122500800
irc - Joran on OPN
msn - ranyardm at hotmail.com
y!  - ranyardm
e   - ranyardm at lineone.net

More information about the Lazarus mailing list