added wxTB_HORZ_TEXT (patch 713813); documented it; moved toolbar styles to toolbar.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -386,6 +386,18 @@ wxToolBar* wxFrameBase::CreateToolBar(long style,
|
||||
wxCHECK_MSG( !m_frameToolBar, (wxToolBar *)NULL,
|
||||
wxT("recreating toolbar in wxFrame") );
|
||||
|
||||
if ( style == -1 )
|
||||
{
|
||||
// use default style
|
||||
//
|
||||
// NB: we don't specify the default value in the method declaration
|
||||
// because
|
||||
// a) this allows us to have different defaults for different
|
||||
// platforms (even if we don't have them right now)
|
||||
// b) we don't need to include wx/toolbar.h in the header then
|
||||
style = wxBORDER_NONE | wxTB_HORIZONTAL | wxTB_FLAT;
|
||||
}
|
||||
|
||||
m_frameToolBar = OnCreateToolBar(style, id, name);
|
||||
|
||||
return m_frameToolBar;
|
||||
|
||||
Reference in New Issue
Block a user