Autor Beitrag
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 17.12.04 16:05 
Hi
Wie kann ich mit einem Button das Ausehen des Markierten Textes ändern?
Wie man das aussehen ändern kann weis ich aber wie macht man, das nur der markierte Text geändert wird?
P_G
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 75

Win XP
Delphi 7 / 8 Enterprise
BeitragVerfasst: Fr 17.12.04 16:09 
Du greifst auf die Eigenschaft SelAttributes zu.

Gruß, P_G
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Fr 17.12.04 16:09 
schau dir mal RichEdit.SelAttributes an

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 17.12.04 20:05 
k, danke.

Um einen Style hinzuzufügen sieht das dann so aus: RichEdit1.SelAttributes.Style := RichEdit1.SelAttributes.Style + [fsBold];