]> 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 4bdc42383d3ae83c56dd1ca70b9d2bd6fa319cfd..ca584671744db6168b083f3fcbedb16c6a29912b 100644 (file)
@@ -8,26 +8,31 @@
 
 #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);
  
-
 
 // ----------------------------------------------------------------------------
 // The `main program' equivalent, creating the windows and returning the
 // 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");