User Tag List

Results 1 to 8 of 8

Thread: undo

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Apr 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    undo

    Is there a way to add an "undo" function to an application just like in windows the regular undo or "contrl z" which will undo or reverse the last operation?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    Yes, but how it's done depends on what kind of application you're making. One way to do it would be to store information about each action performed by the user in a list (what an 'action' means is up to you), and when 'Undo' is pressed, to look at the latest one and reverse it.

  3. #3
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    If your program is based around Ini++, then you can use the "undo/redo" feature of Ini++ v1.5.

    However, usually this will require you to write your program around this feature. Still, if you do there are quite a few benefits!

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Apr 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    Can u give me an example of this or an idea of how to go about this method?

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Apr 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    Referring to the storing "action" information method.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    Like DavidN said, it depends on what you're doing.

    For example, if you have an action which adds x to a counter, you just need to remember the value of x, and you could then undo the action by simply subtracting x from the counter.

    However, a lot of actions aren't going to be reversible - the only way to undo the action is to save a backup copy of the entire file. For example, a pixelation filter in a graphics app.

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Apr 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    ok think i understand the gist of it. Thank you.

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Apr 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: undo

    In my case it is mostly the position(s) and content of an active object(s). Content meaning there was a picture loaded from file into it(the active object) and they all moved say 96 points or pixels left and by doing the undo action they would return to the coordinates they were at before they all moved. I was thinking save frame position but that would mean constantly writing a file with every move that is made which can then be reloaded by the undo action.

Similar Threads

  1. Undo bug
    By Skyhunter in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 3rd October 2012, 04:30 PM
  2. Undo Properties
    By Asholay in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 1st March 2009, 03:42 PM
  3. Undo Bug: resizing objects doesn`t undo
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 3rd March 2007, 09:55 AM
  4. undo expression
    By Ross in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th August 2006, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •