mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 13:59:10 +02:00
LazReport: Add support for 'StrikeOut' style in a Memo 'Script' property, by paweld, issue #40521
This commit is contained in:
parent
ff35bc8908
commit
05e9728fc5
@ -112,6 +112,7 @@ begin
|
|||||||
if (Style and $1) <> 0 then Result := Result + [fsItalic];
|
if (Style and $1) <> 0 then Result := Result + [fsItalic];
|
||||||
if (Style and $2) <> 0 then Result := Result + [fsBold];
|
if (Style and $2) <> 0 then Result := Result + [fsBold];
|
||||||
if (Style and $4) <> 0 then Result := Result + [fsUnderLine];
|
if (Style and $4) <> 0 then Result := Result + [fsUnderLine];
|
||||||
|
if (Style and $8) <> 0 then Result := Result + [fsStrikeOut];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function frGetFontStyle(Style: TFontStyles): Integer;
|
function frGetFontStyle(Style: TFontStyles): Integer;
|
||||||
@ -120,6 +121,7 @@ begin
|
|||||||
if fsItalic in Style then Result := Result or $1;
|
if fsItalic in Style then Result := Result or $1;
|
||||||
if fsBold in Style then Result := Result or $2;
|
if fsBold in Style then Result := Result or $2;
|
||||||
if fsUnderline in Style then Result := Result or $4;
|
if fsUnderline in Style then Result := Result or $4;
|
||||||
|
if fsStrikeOut in Style then Result := Result or $8;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure RemoveQuotes(var s: String);
|
procedure RemoveQuotes(var s: String);
|
||||||
|
Loading…
Reference in New Issue
Block a user