Autor Beitrag
jackie05
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 357



BeitragVerfasst: Do 23.03.06 00:11 
hallo,
ich wollte mal fragen wie man in RichEdit Prüfen kann welcher Buchstabe Markiert ist, wenn ich in RichEdit z.B. nur das A Markiere und ich dann auf Button1 klicke das dieser Buchstabe wo Markiert ist in Label erscheint.
ich bin euch schonmal sehr dankbar für die hilfe :?

Gruss Christian
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 23.03.06 00:17 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
 label1.Caption := richedit1.SelText; // seltext = selected text (engl. selektierter text)
end;


mfg ;)
jackie05 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 357



BeitragVerfasst: Do 23.03.06 00:26 
cool, vielen dank, genau das habe ich gebraucht :lol:

Christian