Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Undo button
Message
De
16/10/1998 16:02:18
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00146106
Message ID:
00147672
Vues:
35
>>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."

Surely it would mean much more work than what I wrote. My design pattern is to create a skeleton first, then add the flesh :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform