|  | 
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  | Katılımcı : 0 |  | Okunma | : 6979 |  |  |  |  |  |  |  |  | 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. | 
 |