]> Creatis software - bbtkGEditor.git/blobdiff - appli/bbEditor/bbEditor.cxx
This commit was manufactured by cvs2svn to create tag 'CREATOOLS_2-0-3'.
[bbtkGEditor.git] / appli / bbEditor / bbEditor.cxx
index 57bd80ccec7262fe984642c282e5d80e61a300b5..ca584671744db6168b083f3fcbedb16c6a29912b 100644 (file)
@@ -8,14 +8,14 @@
 
 #include <wx/cmdline.h> 
 #include <wx/app.h>
+#include <wx/sysopt.h>
  
-
 class wxBBEditorApp : public wxApp
 {
 public:
   bool OnInit( ); 
   int  OnExit() { return true; }
+
 };
   
 IMPLEMENT_APP(wxBBEditorApp);
@@ -27,7 +27,12 @@ IMPLEMENT_APP(wxBBEditorApp);
 // main frame
 bool wxBBEditorApp::OnInit( )
 {
-  wxApp::OnInit();
+#ifdef MACOSX
+       /* assume this is OSX */
+       wxSystemOptions::SetOption("mac.listctrl.always_use_generic", 1);
+#endif
+
+       wxApp::OnInit();
 #ifdef __WXGTK__
   //See http://www.wxwindows.org/faqgtk.htm#locale
   setlocale(LC_NUMERIC, "C");