mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 07:48:09 +02:00
43 lines
676 B
ObjectPascal
43 lines
676 B
ObjectPascal
unit LCLClipboardUnit;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Buttons, ClipBrd;
|
|
|
|
type
|
|
|
|
{ TForm1 }
|
|
|
|
TForm1 = class(TForm)
|
|
GetTargetsButton: TButton;
|
|
procedure GetTargetsButtonClick(Sender: TObject);
|
|
private
|
|
{ private declarations }
|
|
public
|
|
{ public declarations }
|
|
end;
|
|
|
|
var
|
|
Form1: TForm1;
|
|
|
|
implementation
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TForm1 }
|
|
|
|
procedure TForm1.GetTargetsButtonClick(Sender: TObject);
|
|
var
|
|
s: String;
|
|
begin
|
|
writeln('TForm1.GetTargetsButtonClick Getting PrimarySelection ...');
|
|
s:=PrimarySelection.AsText;
|
|
writeln('TForm1.GetTargetsButtonClick PrimarySelection="',s,'"');
|
|
end;
|
|
|
|
end.
|
|
|