Autor Beitrag
csigg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Fr 15.04.05 09:18 
Ich hab ein Problem mit meinem Label:
ausblenden Delphi-Quelltext
1:
 lbRaum1.Font.Style.fsbold := true;					

gibt mir immer nen Fehler aus.
wenn ich nur lbRaum1.Font. eingebe, gibt mir der Kompiler noch die Auswahl Size, Style,... wenn ich dann auf Style gehe bringt der Kompiler einen Fehler, warum?? :D
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 15.04.05 09:20 
Probier mal lbRaum1.Font.Style := [fsBold];. Ds sollte klappen.

_________________
We are, we were and will not be.
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Fr 15.04.05 09:22 
danke, jetzt bin ich schon fast Glücklich.
Weisst du zufällig wie ich die Variable deklarieren muss das ich in sie [fsbold] reinschrieben kann, und dann die Variabel dem Style zuweisen kann???
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 15.04.05 09:27 
hab ich nicht ausprobiert, aber
Delphi Hilfe:
Die Eigenschaft Style legt fest, ob die Schriftzeichen normal, kursiv, unterstrichen, fett oder durchgestrichen dargestellt werden.

Delphi-Syntax:

type
TFontStyle = (fsBold, fsItalic, fsUnderline, fsStrikeOut);
TFontStyles = set of TFontStyle;
property Style: TFontStyles;

_________________
We are, we were and will not be.
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Fr 15.04.05 09:39 
Danke hat geklappt.
ausblenden Delphi-Quelltext
1:
 schrift: TFontStyles;					

ausblenden Delphi-Quelltext
1:
 schrift := [fsbold];					
csigg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 706

WIn XP, Win NT, Win2000, Suse8.0
Delphi 5, Delphi 6
BeitragVerfasst: Fr 15.04.05 10:04 
also ich jetzt abgeändert auf Panel. Wie bekomme ich es hin dass das Panel nichtmehr nach 3D aussieht??