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

WinXP
D2005 PE
BeitragVerfasst: Do 25.05.06 00:04 
Hi
Ich speichere die Attribute des Texts in eine Variable.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var
  TextAtt: TJvTextAttributes;

  TextAtt := Editor.SelAttributes;

Aber jetzt kann ich nicht auf TextAtt.Style zugreifen.
ausblenden Delphi-Quelltext
1:
if fsBold in TextAtt.Style then ...					

Funktioniert nicht.
Ich kann aber nich TFontStyle verwenden da ich auch SelAttributes.Name brauche.

Hat jemand eine Idee warum das nich geht? :(
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 26.05.06 01:40 
Hat den Niemand eine Idee? :(
Im Grunde ist es ja so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
  TextStyle: TFontStyles;

  TextStyle := Editor.SelAttributes.Style;
  TextStyle //<- man kann auf Style zugreifen
und
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
  TextAtt: TJvTextAttributes;

  TextAtt := Editor.SelAttributes;
  TextAtt.Style //<- man kann nicht auf Style zugreifen

Ist es normal das man nicht auf die Unterelemente zugreifen kann?