]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed a problem in the aui toolbar flags
authorBenjamin Williams <bwilliams@kirix.com>
Wed, 3 Sep 2008 14:45:47 +0000 (14:45 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Wed, 3 Sep 2008 14:45:47 +0000 (14:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/aui/auibar.h
src/aui/auibar.cpp

index bbf77674a3897e2a1550761ee5b591c340056ac7..658fc7b3240d6da80ccc3524c63eb57385a783a3 100644 (file)
@@ -26,7 +26,8 @@ enum wxAuiToolBarStyle
     wxAUI_TB_GRIPPER       = 1 << 3,
     wxAUI_TB_OVERFLOW      = 1 << 4,
     wxAUI_TB_VERTICAL      = 1 << 5,
-    wxAUI_TB_HORZ_TEXT     = ((1 << 6) | wxAUI_TB_TEXT),
+    wxAUI_TB_HORZ_LAYOUT   = 1 << 6,
+    wxAUI_TB_HORZ_TEXT     = (wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_TEXT),
     wxAUI_TB_DEFAULT_STYLE = 0
 };
 
index 9fb1f57e76a1087b2c4a82a6e2995b9e3dace5e2..49e1bf8f418b974ee6b84dc29d093100b1fb96eb 100644 (file)
@@ -824,7 +824,7 @@ wxAuiToolBar::wxAuiToolBar(wxWindow* parent,
     SetFont(*wxNORMAL_FONT);
     m_art->SetFlags((unsigned int)m_style);
     SetExtraStyle(wxWS_EX_PROCESS_IDLE);
-    if (style & wxAUI_TB_HORZ_TEXT)
+    if (style & wxAUI_TB_HORZ_LAYOUT)
         SetToolTextOrientation(wxAUI_TBTOOL_TEXT_RIGHT);
 }
 
@@ -857,7 +857,7 @@ void wxAuiToolBar::SetWindowStyleFlag(long style)
     else
         m_overflow_visible = false;
 
-    if (style & wxAUI_TB_HORZ_TEXT)
+    if (style & wxAUI_TB_HORZ_LAYOUT)
         SetToolTextOrientation(wxAUI_TBTOOL_TEXT_RIGHT);
     else
         SetToolTextOrientation(wxAUI_TBTOOL_TEXT_BOTTOM);