Solved

Undo function...

Posted on 1998-03-15
1
295 Views
Last Modified: 2010-04-06
Hi,
    I need an undo function. I know there is CutToClipboard  and PasteFromClipboard etc, but is there a command for undo? If not can anyone give me the source for an undo function on a TMemo object?
Cheers, Nik
0
Comment
Question by:NikWhit
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 0 total points
ID: 1360514
hello nik, try this

procedure TForm1.Button1Click(Sender: TObject);
begin
SendMessage(memo1.handle,WM_UNDO,0,0);
end;

note: unit 'windows' must be in the 'uses' statement
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question