]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/dbbrowse/dbtree.cpp
Add system fonts
[wxWidgets.git] / demos / dbbrowse / dbtree.cpp
index daacec77bfb5bc85a773041f2d737551d8d793b0..87efc3215da70a5cff27ab60cce87124f945a110 100644 (file)
@@ -61,32 +61,33 @@ DBTree::DBTree(wxWindow *parent, const wxWindowID id,const wxPoint& pos, const w
   : wxTreeCtrl(parent, id, pos, size, style)
 {
   //wxFont* ft_Temp = new wxFont(10,wxSWISS,wxNORMAL,wxBOLD,FALSE,"Comic Sans MS");
-  //SetFont(* ft_Temp);
+  wxFont* ft_Temp = new wxFont(wxSystemSettings::GetSystemFont(wxSYS_SYSTEM_FONT));
+  SetFont(* ft_Temp);
   
   // Make an image list containing small icons
   p_imageListNormal = new wxImageList(16, 16, TRUE);
   
   // should correspond to TreeIc_xxx enum
-// #if defined(__WXMSW__)
-//   p_imageListNormal->Add(wxICON(Logo));
-//   p_imageListNormal->Add(wxICON(DsnClosed));
-//   p_imageListNormal->Add(wxICON(DsnOpen));
-//   p_imageListNormal->Add(wxICON(TAB));
-//   p_imageListNormal->Add(wxICON(COL));
-//   p_imageListNormal->Add(wxICON(KEY));
-//   p_imageListNormal->Add(wxICON(KEYF));
-//   p_imageListNormal->Add(wxICON(DocOpen));
-//   p_imageListNormal->Add(wxICON(DocOpen));
-// #else
-// #include "bitmaps/logo.xpm"
-// #include "bitmaps/dsnclose.xpm"
-// #include "bitmaps/dsnopen.xpm"
-// #include "bitmaps/tab.xpm"
-// #include "bitmaps/key.xpm"
-// #include "bitmaps/keyf.xpm"
-// #include "bitmaps/d_open.xpm"
-// #include "bitmaps/d_closed.xpm"
-//#endif
+ #if defined(__WXMSW__)
+   p_imageListNormal->Add(wxICON(Logo));
+   p_imageListNormal->Add(wxICON(DsnClosed));
+   p_imageListNormal->Add(wxICON(DsnOpen));
+   p_imageListNormal->Add(wxICON(TAB));
+   p_imageListNormal->Add(wxICON(COL));
+   p_imageListNormal->Add(wxICON(KEY));
+   p_imageListNormal->Add(wxICON(KEYF));
+   p_imageListNormal->Add(wxICON(DocOpen));
+   p_imageListNormal->Add(wxICON(DocOpen));
+ #else
+ #include "bitmaps/logo.xpm"
+ #include "bitmaps/dsnclose.xpm"
+ #include "bitmaps/dsnopen.xpm"
+ #include "bitmaps/tab.xpm"
+ #include "bitmaps/key.xpm"
+ #include "bitmaps/keyf.xpm"
+ #include "bitmaps/d_open.xpm"
+ #include "bitmaps/d_closed.xpm"
+#endif
   
   SetImageList(p_imageListNormal);
   ct_BrowserDB = NULL;