Hallo Delphianer,
wie kann ich in der folgenden Prozedur den Schriftstil in eine INI-Datei schreiben ? Denn laut Online-Hilfe ist für INI-Dateien kein Typ ‚TFontStyles‘ vorgesehen.
procedure TFormHaupt.ActionSchriftenartWaehlenExecute(Sender: TObject);
var
sSchriftart : string;
iGroesse : integer;
iFarbe : integer;
fsStil : TFontStyles;
begin
if FontDialog1.Execute then
begin
StringGrid1.Font.Assign(FontDialog1.Font);
sSchriftart := StringGrid1.Font.Name;
iGroesse := StringGrid1.Font.Size;
iFarbe := StringGrid1.Font.Color;
fsStil := StringGrid1.Font.Style;
function StyleWandler(FS: TFontStyles): string;
begin
if fsBold in FS then result := ‚1‘ else result := ‚0‘;
if fsItalic in FS then result := result + ‚1‘ else result := result + ‚0‘;
if fsUnderline in FS then result := result + ‚1‘ else result := result + ‚0‘;
if fsStrikeOut in FS then result := result + ‚1‘ else result := result + ‚0‘;
end;
var
sSchriftart : string;
iGroesse : integer;
iFarbe : integer;
fsStil : TFontStyles;
begin
if FontDialog1.Execute then
begin