Link to home
Start Free TrialLog in
Avatar of Chrysaor
Chrysaor

asked on

Copy,cut,paste,undo,redo in C++

I am trying to create an application like Notepad. Where can I find functions for copy,cut,paste? Also , there will be more than one Edit objects, so , how can i make the undo function to undo the last general action? (I cannot use Edit1->Undo() because there are multiple Edit objects)

Thanks
Avatar of KrisTheComputerGuy
KrisTheComputerGuy
Flag of United States of America image

I found a tutorial on how to use the Command software design pattern to support multiple undos.

http://kapo-cpp.blogspot.com/2007/10/multilevel-undo-with-command-pattern.html

Design patterns can be tricky at first. But their pretty cool stuff.
ASKER CERTIFIED SOLUTION
Avatar of KrisTheComputerGuy
KrisTheComputerGuy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial