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 » Tue Feb 03, 2015 8:51 pm

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: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Why undo isn't working?

Post by dunbarx » Tue Feb 03, 2015 11:32 pm

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: 10057
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Why undo isn't working?

Post by FourthWorld » Tue Feb 03, 2015 11:37 pm

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 » Wed Feb 04, 2015 7:54 pm

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: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Why undo isn't working?

Post by jacque » Thu Feb 05, 2015 10:25 pm

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 » Fri Feb 06, 2015 6:20 pm

Okay got it, thanks :)

Post Reply