Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 03.07.05 12:06 
Ich hab nen memo und der dort markierte Text soll ins Clipbrd kopiert bzw. ausgeschnitten werden umgekehrt soll man aber genau an der stelel des Cursors text wieder einfügen können. Ich weiß nur nicht wie ich auf den markierten text zugreifen kann. Eine anweisng wie

clipboard.astext:=memo1.selectedtext

gibsts bestimmt nicht. Wisst ihr antwort?
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: So 03.07.05 12:18 
ausblenden Delphi-Quelltext
1:
2:
uses
  Clipbrd;

ausblenden Delphi-Quelltext
1:
Clipboard.AsText := Memo1.SelText;					

_________________
Ciao, Sprint.
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 03.07.05 18:59 
Titel: Memo
Danke! und wie kann ich an der cursorposition text aus der zwischenablage wieder einfügen?
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: So 03.07.05 19:12 
Titel: Re: Memo
user profile iconKoller hat folgendes geschrieben:
Danke! und wie kann ich an der cursorposition text aus der zwischenablage wieder einfügen?


ausblenden Delphi-Quelltext
1:
Memo1.PasteFromClipBoard;					


für dein erstes Problem reicht auch ein Memo1.CopyToClipBoard ;)

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)