summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-05-06 00:13:31 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-05-06 00:13:31 +0200
commit0a0169338b275e020ba40c50f57d7e7d4ca77cb1 (patch)
tree4cd9f01f1101472cbc2644793f5bdecf382e5eb1
parentfc9b564011e699133fe1301b5088cb362e7cb6b0 (diff)
downloadfpGUI-0a0169338b275e020ba40c50f57d7e7d4ca77cb1.tar.xz
make the Style Manager available in the fpg_main unit.
This is a bit of a cross-linking case, jumping from corelib code to gui code, but I can't see how this can be done any other way. After all, fpGUI is a GUI toolkit - not a non-gui utility library. For some strange reason the 'Win2000' and 'auto' did not register automatically, even though they are in the *.lpk package and in the initialization section. So I had to add that style unit to the uses clause. I need to investigate why this had to be done.
-rw-r--r--src/corelib/fpg_main.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas
index d6dc7410..db86eded 100644
--- a/src/corelib/fpg_main.pas
+++ b/src/corelib/fpg_main.pas
@@ -478,7 +478,9 @@ uses
fpg_extgraphics,
fpg_utils,
fpg_cmdlineparams,
- fpg_imgutils;
+ fpg_imgutils,
+ fpg_stylemanager,
+ fpg_style_win2k; // TODO: This needs to be removed!
var
fpgTimers: TList;