+ int orient = wxTB_HORIZONTAL;
+ if ( (style & (wxBK_LEFT | wxBK_RIGHT)) != 0)
+ orient = wxTB_VERTICAL;
+
+ // TODO: make more configurable
+
+#if defined(__WXMAC__) && wxUSE_TOOLBAR && wxUSE_BMPBUTTON
+ if (style & wxBK_BUTTONBAR)
+ {
+ m_bookctrl = new wxButtonToolBar
+ (
+ this,
+ wxID_TOOLBOOKTOOLBAR,
+ wxDefaultPosition,
+ wxDefaultSize,
+ orient|wxTB_TEXT|wxTB_FLAT|wxNO_BORDER
+ );
+ }
+ else
+#endif
+ {
+ m_bookctrl = new wxToolBar