Solved

Copy Text to clipboard by WinAPI...

Posted on 1998-06-29
4
1,247 Views
Last Modified: 2008-02-01
Hi,
I wants to place a text in clipboard, is possible by means of WinAPI, as far as using module Clipbrd my program sharply enlarges a volume?
0
Comment
Question by:DValery
[X]
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
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Tom Knowlton
ID: 1356383
What about...

procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.CopyToClipboard;
  Edit1.PasteFromClipboard;
end;

Does this help?


0
 
LVL 1

Author Comment

by:DValery
ID: 1356384
I does not want to use any VCL... :(
0
 
LVL 4

Accepted Solution

by:
BoRiS earned 10 total points
ID: 1356385
dvalery

use the following API calls....

1.      OpenClipboard  - function.
2.      EmptyClipboard  - function.
3.      SetClipboardData  - function  
4.      CloseClipboard  - function.

just check the function out in the win32 help...

Later
BoRiS
0
 
LVL 1

Author Comment

by:DValery
ID: 1356386
Thank you, it that I wanted.
0

Featured Post

Technology Partners: 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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

732 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