Use wxChoicebook instead of wxTreebook on wxMac, to avoid some mislayout and be a bit more in line with Apple's HIG.

Originally committed to SVN as r1583.
This commit is contained in:
Niels Martin Hansen 2007-09-23 23:22:15 +00:00
parent 09f7c32cb2
commit 345ff629d7
2 changed files with 3 additions and 3 deletions

View file

@ -37,10 +37,10 @@
/////////// ///////////
// Headers // Headers
#include "dialog_options.h" #include "dialog_options.h"
#ifdef wxUSE_TREEBOOK #if wxUSE_TREEBOOK && !__WXMAC__
#include <wx/treebook.h> #include <wx/treebook.h>
#else #else
#define AddSubPage(a,b,c) AddPage(a,b,c) #define AddSubPage(page,text,select) AddPage(page,wxString::Format(_T("\t%s"),text),select)
#endif #endif
#include "options.h" #include "options.h"
#include <wx/spinctrl.h> #include <wx/spinctrl.h>

View file

@ -52,7 +52,7 @@
// Prototypes // Prototypes
class FrameMain; class FrameMain;
class DialogInputHotkey; class DialogInputHotkey;
#ifdef wxUSE_TREEBOOK #if wxUSE_TREEBOOK && !__WXMAC__
class wxTreebook; class wxTreebook;
#else #else
#include <wx/choicebk.h> #include <wx/choicebk.h>