Autor Beitrag
110022
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: Mo 05.11.07 18:19 
was ist hier dran falsch??
hab schon einiges ausprobiert.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
form1.memo1.font.Size:= 8;
form1.memo1.font.color:= clwindowtext;
form1.memo1.font.name:= MS Sans Serif;
form1.memo1.font.style.fsunderlined:=false;
form1.memo1.font.style.fsbold:=false;
form1.memo1.font.style.fsstrikeout:=false
form1.memo1.font.style.fsitalic:=false
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 05.11.07 18:23 
font styles weißt man mit

ausblenden Delphi-Quelltext
1:
2:
3:
4:
  Memo1.font.styles:=Memo1.font.styles - [fsunderline];
  Memo1.font.styles:=Memo1.font.styles - [fsbold];
  Memo1.font.styles:=Memo1.font.styles - [fsitalic];
  Memo1.font.styles:=Memo1.font.styles - [fsstrikeout];

zu.

lg elundril

//edit: von + auf minus gesetzt da ers ja false haben will

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.


Zuletzt bearbeitet von elundril am Mo 05.11.07 18:26, insgesamt 1-mal bearbeitet
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Mo 05.11.07 18:24 
In der dritten Zeile muss warscheinlich MS Sans Serif in Anführungszeichen gesetzt werden und Font-Styles weist man mit Form1.Memo1.Font.Style := Form1.Memo1.Font.Style + [fsUnderline]; zu. Ansonsten schreib auch bitte, was für eine Fehlermeldung der Compiler ausspuckt.
110022 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 287

XP SP2
Delphi 7
BeitragVerfasst: Mo 05.11.07 18:30 
dankeee @elundril hat geklappt :dance2:
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 05.11.07 18:33 
bitte gern geschehen! Der Name von der Font gehört ebenso wie schon Chryzler gesagt hat unter anführungszeichen glaub ich. (falls dus noch nicht hast).

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.