![]() |
einen string ins clipboard
Hallo,
ich hab mich schon um die suche bemüht, aber noch nichts passendes gefunden. Ich will den inhalt einer Edit per buttonklick ins clipboard kopieren. Wie geht das? |
Re: einen string ins clipboard
in Delphi7
Delphi-Quellcode:
ansonsten
Edit1.CopyToClipboard;
Delphi-Quellcode:
uses ClipBrd;
... var Clip: TClipBoard; begin Clip := TClipBoard.Create; Clip.SetTextBuf(PChar(Edit1.Text)); Clip.Free; end; |
Re: einen string ins clipboard
Hallo,
Du fügst die Unit 'Clipbrd' der Uses-Klausel hinzu und kopierst dann über
Delphi-Quellcode:
den gewünschten Text in die Zwischenablage.
Clipboard.AsText := MEINTEXT;
|
Re: einen string ins clipboard
Danke für eure Hilfe
Jetzt klappts =) |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:18 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz