?
Solved

Copy Text to clipboard by WinAPI...

Posted on 1998-06-29
4
Medium Priority
?
1,259 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 40 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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