Sign in to follow this  
  • entries
    29
  • comments
    35
  • views
    17819

Undo and redo part 2

Sign in to follow this  
walle

305 views

Got a simple application with undo/redo up and running today. Basically each of the buttons registers a ButtonPressAction every time they are pressed, and if you do a undo you register a ButtonPressRemoveAction. And the code to actuallt undo/redo is index based, it manipulates the listbox.items at the current index.
The CircularStack class is made in a couple of seconds so I won't take any responsibility on that it is perfect :)

Try it if you want. Clicky
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now