Delete fonts out of TRVFontComboBox
Posted: Tue Sep 25, 2018 8:23 am
Hello,
We use right now V15.3.2 of TRichview, Upgrade to V17 maybe in the next Months
we try to eliminate some Fonts out of TRVFontComboBox. In the TRVFontComboBox.Build method there is a filter:
to eliminate @ Fonts. Is it possible somehow to delete specific Fonts (eg FixedSys)? I try to delete the font in the Combobox-Items, but this doesn't work....
We use right now V15.3.2 of TRichview, Upgrade to V17 maybe in the next Months
we try to eliminate some Fonts out of TRVFontComboBox. In the TRVFontComboBox.Build method there is a filter:
Code: Select all
procedure TRVFontComboBox.Build;
var SL: {$IFDEF USERVTNT}TTntStringList{$ELSE}TStringList{$ENDIF};
i: Integer;
begin
SL := {$IFDEF USERVTNT}TTntStringList{$ELSE}TStringList{$ENDIF}.Create;
SL.Assign(Screen.Fonts);
SL.BeginUpdate;
for i := SL.Count-1 downto 0 do
if (SL[i]='') or (SL[i][1]='@') then
SL.Delete(i);
SL.EndUpdate;
Items := SL;
SL.Free;
end;