Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Undo function...

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
code issue 8 152
Magic Software info 18 138
Find and Replace Stream with 0s 8 69
RESTRequest Parameter 4 41
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…

792 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