Why undo isn't working?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Why undo isn't working?

Post by croivo »

I have no idea where to put this topic, so I'll leave it here...

Does anybody else experience this bug in Livecode where you just can't undo done things?
Here is short demonstration: http://youtu.be/2K2fzX8Q0tY
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Why undo isn't working?

Post by dunbarx »

Hi.

"Undo" will indeed restore a control to its old position for me. And it will restore a name change in the inspector, provided I keep the text field in front when I invoke it. It will restore text in a field if, say, I cut it, and then immediately invoke it.

Only one level is supported, however it is used, that is, it will toggle the two most recent states.

Now this is on a Mac. What platform are you on?

Craig Newman
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Why undo isn't working?

Post by FourthWorld »

Undo has been working well for me on Ubuntu, Mac, and Windows.

I was unable to view the video; the page notes an error.

What platform are you on? And can you describe what actions you were expecting to be undoable that are not?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Re: Why undo isn't working?

Post by croivo »

Well I expect to undo accidental moving buttons, image backgrounds and stuff like that...

Here is the same video on OneDrive: http://1drv.ms/1DeHIzd

I'm using Windows 8.1 with latest LC build...
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Why undo isn't working?

Post by jacque »

Undo works if you undo immediately after the action, but there is no multiple undo. Text edits will undo until the focus leaves the field, after that the edits are forgotten. Objects you move with the mouse will undo, but scripted movement will not. Importing images or other controls will not undo, but painting with a painting tool will undo. Menu selections (like "Place group") will not undo because those are scripted actions.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
croivo
Posts: 111
Joined: Wed Feb 26, 2014 11:02 pm

Re: Why undo isn't working?

Post by croivo »

Okay got it, thanks :)
Post Reply