By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Undo option

P: n/a
Hi

Is it possible to implement an application wide Undo facility, like that
under the Edit menu?

Thanks

Regards
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Depends where you are undoing from (Undoing changes you just commited to a
database is more difficult than say undoing something you jsut typed). If
you are doing it with controls, both the RichTextBox and TextBox controls
have an undo method. But if you want more complex undoing, it'lll take code
specific to the issue at hand.
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Hi

Is it possible to implement an application wide Undo facility, like that
under the Edit menu?

Thanks

Regards

Nov 20 '05 #2

P: n/a
Cor
Hi John,

In addition to Bill,

Undoing i always reseting from the previous situation.
If you want to undo from a not yet updated database, it is easy, you only
have to reread it.

If you want to do it in another not implemented situations (as Bill said)
than you have to build your own stack schema with tempory situations.
(and a clean up situation)

I hope this helps

Cor
Nov 20 '05 #3

P: n/a
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Hi

Is it possible to implement an application wide Undo facility, like that
under the Edit menu?


In your favorite design pattern source, see the "Command" pattern. I
recommend the book Design Patterns, or http://msdn.microsoft.com/patterns/

HTH,
Jeremy

Nov 20 '05 #4

P: n/a
"John" <jo**@nospam.infovis.co.uk> wrote in message news:<e4**************@tk2msftngp13.phx.gbl>...
Hi

Is it possible to implement an application wide Undo facility, like that
under the Edit menu?


I just posted an article in CodeProject that might be of some help.
It's in C#, but can be used without any modification.

http://www.codeproject.com/cs/menu/T...alEditMenu.asp

Hope this helps.
Tom
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.