Copy Text to clipboard by WinAPI...

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?
LVL 1
DValeryAsked:
Who is Participating?
 
BoRiSConnect With a Mentor Commented:
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
 
Tom KnowltonWeb developerCommented:
What about...

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

Does this help?


0
 
DValeryAuthor Commented:
I does not want to use any VCL... :(
0
 
DValeryAuthor Commented:
Thank you, it that I wanted.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.