Solved

Undo function...

Posted on 1998-03-15
1
277 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now