![]() |
SynEdit Abschnitt färben
Hi,
wie kann man mit SynEdit einen Textabschnitt färben ? Dies ist der Code für ein RichEdit, allerdings weiß ich nicht, was man aus SelAttributes machen muss:
Delphi-Quellcode:
procedure AddColoredString(ARichEdit: TRichEdit; AText: string; AColor: TColor);
begin with ARichEdit do begin SelStart := Length(Text); SelAttributes.Color := AColor; SelAttributes.Size := 8; SelAttributes.Name := 'MS Sans Serif'; SelText := AText+#13#10; end; end; |
Re: SynEdit Abschnitt färben
synedits haben doch keine textfarbe, oder?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:03 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