Autor Beitrag
Arbengie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 66



BeitragVerfasst: Mo 01.02.10 17:54 
Hi, hab mal ne neue Frage:

Undzwar gibt nen einfaches Edit1.Text Feld und nen Button1:

Wenn ich auf den Button1 klicke, soll der den Inhalt von Edit1.Text kopieren, sodass ich diesen Text wo anders wieder einfügen kann.


Danke im vorraus


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 01.02.2010 um 20:04
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 01.02.10 18:03 
Schau Dir mal die Klasse TClipboard an. Die dürfte Dir recht gut weiterhelfen. Dazu sollte es auch hier im Forum eine Reihe von Beiträgen geben. Auch zum Thema Clipboard selbst, dürften sich eine Reihe von Beispielen finden lassen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Mo 01.02.10 18:56 
öhm. IMHO ist das einfach nur ein Fall für eine Variable vom Typ String.

€: es sei denn, mit woanders ist extern der Anwendung gemeint... dann siehe Benny/Gausi


Zuletzt bearbeitet von FinnO am Mo 01.02.10 19:20, insgesamt 1-mal bearbeitet
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 01.02.10 19:02 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
 
uses Clipbrd;
// ...
ClipBoard.AsText := Edit1.Text;

_________________
We are, we were and will not be.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 01.02.10 20:04 
Moin!
ausblenden Delphi-Quelltext
1:
Edit1.CopyToClipboard;					
:zwinker:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.