Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Undo button
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00146106
Message ID:
00148700
Views:
32
>>The way to go. We may need an .PrevValues[n] property array in that class, increase its dimension in each InteractiveChange, and step back in Undo - like
>>
>>This.Value=this.Undo.PrevValues[this.Undo.LastValueIndex-1]
>
>I think you'd need more than this, actually. For example, after undoing a change, you want to also change the cursor position, what text is selected, etc.
>
>I'd go with a Command class, as described in "Design Patterns."

Actually Mark, wouldn't the problem be solved better with a Memento pattern?
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform