summaryrefslogtreecommitdiff
path: root/src/corelib/fpgfx.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-04 12:05:53 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-04 12:05:53 +0000
commit842be2507dbf85dd5d91b464f19d6945772a753f (patch)
tree97c87f9fd39a282b1081ee3bedcd2029abe46b28 /src/corelib/fpgfx.pas
parentb1c2f18463febac4c3945aa7c92ac8c3ff366ce9 (diff)
downloadfpGUI-842be2507dbf85dd5d91b464f19d6945772a753f.tar.xz
* Started the implementation of a Grid component.
* Added a test project for the grid component.
Diffstat (limited to 'src/corelib/fpgfx.pas')
-rw-r--r--src/corelib/fpgfx.pas10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/fpgfx.pas b/src/corelib/fpgfx.pas
index 6410afde..cce070ca 100644
--- a/src/corelib/fpgfx.pas
+++ b/src/corelib/fpgfx.pas
@@ -496,7 +496,6 @@ begin
if n < fpgNamedFonts.Count then
TNamedFontItem(fpgNamedFonts[n]).FontDesc := afontdesc// already defined
-
else
fpgNamedFonts.Add(TNamedFontItem.Create(afontid, afontdesc));
end;
@@ -552,7 +551,7 @@ var
begin
fdesc := afontdesc;
- if copy(fdesc, 1, 1) = '#' then
+ if copy(fdesc, 1, 1) = '#' then // A # (hash) denotes a named font
fdesc := fpgGetNamedFontDesc(copy(afontdesc, 2, length(afontdesc)));
Result := nil;
@@ -776,13 +775,14 @@ begin
fpgSetNamedFont('Edit1', 'Arial-10');
fpgSetNamedFont('Edit2', 'Courier New-10');
fpgSetNamedFont('List', 'Arial-10');
- fpgSetNamedFont('Grid', 'Arial-9:antialias=false');
- fpgSetNamedFont('GridHeader', 'Arial-9:bold:antialias=false');
+ fpgSetNamedFont('Grid', 'Arial-9');
+ fpgSetNamedFont('GridHeader', 'Arial-9:bold');
fpgSetNamedFont('Menu', 'Arial-10');
fpgSetNamedFont('MenuAccel', 'Arial-10:bold');
fpgSetNamedFont('MenuDisabled', 'Arial-10:italic');
- {$Note Refactor this so under Windows it can detect the system colors instead.}
+ {$Note Refactor this so under Windows it can detect the system colors instead.
+ Also under Linux (KDE and Gnome) we should be able to detect the system colors.}
fpgSetNamedColor(clWindowBackground, $D4D0C8);
fpgSetNamedColor(clBoxColor, $FFFFFF);
fpgSetNamedColor(clShadow1, $808080);