Delphide clipboard kullanımı - Delphi / Kylix Webmaster bilgi bankası, knowledge base Webmaster Araçları

AnaSayfa > Delphi / Kylix > Delphide clipboard kullanımı
Kategori: Delphi / Kylix
Gönderen: Admin
Tarih: 2011-02-20
Puan: 0   Puan:0 | Katılımcı:0 | Katılımcı : 0
Okunma: 6347
  
 
1 puan 2 puan 3 puan 4 puan 5 puan 6 puan 7 puan 8 puan 9 puan 10 puan

uses ClipBrd;
...
SomeStringData := Clipboard.AsText

uses ClipBrd;
...
if Clipboard.HasFormat(CF_TEXT) then
SomeStringData := Clipboard.AsText
else
ShowMessage('No text in the Clipboard');


procedure TForm1.Button2Click(Sender: TObject);
begin
//the following line will select
//ALL the text in the edit control
{Edit1.SelectAll;}

Edit1.CopyToClipboard;
end;

uses ClipBrd;
...
if Clipboard.HasFormat(CF_METAFILEPICT) then
ShowMessage('Clipboard has metafile');



Clipboard.Assign(MyBitmap);


{place one button and one image control on form1}
{Prior to executing this code press
Alt-PrintScreen key combination}
uses clipbrd;
procedure TForm1.Button1Click(Sender: TObject);
begin
if Clipboard.HasFormat(CF_BITMAP) then
Image1.Picture.Bitmap.Assign(Clipboard);
end;





Yorumlar
Henüz Kimse Yorum Yapmamış, ilk yorumu siz ekleyin!
Yorum Ekleme Aparatı
Yorum Eklemek için lütfen sol menuden giris yapınız..
Toplam 0 yorum listelendi.