Autor Beitrag
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Mi 14.08.02 14:49 
Tach leute,

wie spreche ich eine Makierung im Memo oder RichEdit an. Also ich möchte in einem Text einen Abschnitt markieren und diesen dann per knopfdruck in eine Listbox schreiben.Hat einer ein Codebeispiel?
Vielen Dank im vorraus.
majolo
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Mi 14.08.02 15:49 
Probiere es mal mit :
ausblenden Quelltext
1:
2:
3:
Memo1.SelStart := Anfangsposition;
Memo1.SelLength := Länge der Makierung;
Memo2.Lines.Text := Memo1.SelText

Memo1.SelText gibt den makierten Text wieder aus als String.
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Do 15.08.02 17:15 
Aja, vielen dank.
Mal gucken, ob ich das hinkriege.
Gruß majolo :roll: :roll: