Adding "Undo" Button to the LCD object

Nov 13, 2009 at 12:04am

Adding "Undo" Button to the LCD object

Any ideas on how to create and/or hook up an “undo” button to the lcd object?
I’ve searched online and found a patch that creates an undo button but it doesn’t hook up to the lcd object. Any tips?

Nov 13, 2009 at 1:00am

like somebody here recently said in a similar situation: please be more vague.

what do you want to “undo”? a quickdraw-style command?

May 20, 2010 at 1:48pm

I’m going to try it with sprite recordings….

May 20, 2010 at 2:08pm

it is a lot of work but possible.

“undo” means keeping track of every action … in the case of lcd every
command to sprites, pictures, quickdraw-style messages or whatever.

all these things are messages .. usually lists …. so you need to find a way
how sotre and recall all those messages you are going to send (and undo/redo)
to lcd.

if you do it right, you will end up with something which works with other
objects or whole patches, too …

May 20, 2010 at 11:36pm

probably [coll] or [jit.cellblock] or even [umenu] to store the lists, then you can recall whatever ones you want. you can hack together an undo with [preset] too.

Jul 5, 2010 at 7:34pm

in the end I used: writepict and readpict.

made a perfect undo and redo system!

only thing is that it doesn’t save to ram but
to hd in separate files, so it could be slow. But
in my case it is not slow at all. Don’t
experience any difference…


You must be logged in to reply to this topic.