\twocolwidtha{5cm}
\begin{twocollist}\itemsep=0pt
-
\twocolitem{\windowstyle{wxBK\_DEFAULT}}{Choose the default location for the
labels depending on the current platform (currently always the top).}
+\twocolitem{\windowstyle{wxTBK\_HORZ\_LAYOUT}}{Shows the text and the icons
+alongside, not vertically stacked (only implement under Windows and GTK 2
+platforms as it relies on \texttt{wxTB\_HORZ\_LAYOUT} flag support).}
\end{twocollist}
\wxheading{See also}
// Use wxButtonToolBar
#define wxBK_BUTTONBAR 0x0100
+// Use wxTB_HORZ_LAYOUT style for the controlling toolbar
+#define wxTBK_HORZ_LAYOUT 0x8000
+
// ----------------------------------------------------------------------------
// wxToolbook
// ----------------------------------------------------------------------------
wxDefaultValidator, name) )
return false;
- int orient = wxTB_HORIZONTAL;
- if ( (style & (wxBK_LEFT | wxBK_RIGHT)) != 0)
- orient = wxTB_VERTICAL;
+ int tbFlags = wxTB_TEXT | wxTB_FLAT | wxBORDER_NONE;
+ if ( (style & (wxBK_LEFT | wxBK_RIGHT)) != 0 )
+ tbFlags |= wxTB_VERTICAL;
+ else
+ tbFlags |= wxTB_HORIZONTAL;
+
+ if ( style & wxTBK_HORZ_LAYOUT )
+ tbFlags |= wxTB_HORZ_LAYOUT;
// TODO: make more configurable
wxID_ANY,
wxDefaultPosition,
wxDefaultSize,
- orient|wxTB_TEXT|wxTB_FLAT|wxNO_BORDER
+ tbFlags
);
}
else
wxID_ANY,
wxDefaultPosition,
wxDefaultSize,
- orient|wxTB_TEXT|wxTB_FLAT|wxTB_NODIVIDER|wxNO_BORDER
+ tbFlags | wxTB_NODIVIDER
);
}