Alejandro Tejada wrote:
As I understand, GLX2 version 3.0.10 includes an Undo for everything
that you wrote in the Script Editor. I am just trying to adapt this Undo
code
for vector graphics and all their attributes.

If the code is well done, it could be extended to every control in the card,
but first it's necessary to find a way to store only the differences between
changed states. That is, a differential between each changed state.

Could this be too difficult? Or Is this the wrong method to store previous
States
from a card, where the user could change control attributes and create or
delete controls?

For differences there would be two arrays, and each could be even more compact by storing only the deltas from the template object props.

The resulting pair could be merged or handled any other way that could be useful with a reasonably efficient loop.

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to