mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 06:05:36 +08:00
Check that wxAUI_TB_HORZ_LAYOUT isn't used with wxAUI_TB_VERTICAL
Combining these styles doesn't make sense, so assert if this happens to point out probably mistake in the code creating toolbar.
This commit is contained in:
@@ -47,7 +47,10 @@ enum wxAuiToolBarStyle
|
||||
wxAUI_TB_VERTICAL = 1 << 5,
|
||||
|
||||
/**
|
||||
Shows the text and the icons alongside, not vertically stacked. This style must be used with wxAUI_TB_TEXT
|
||||
Shows the text and the icons alongside, not vertically stacked.
|
||||
|
||||
This style must be used with wxAUI_TB_TEXT and can't be used with
|
||||
wxAUI_TB_VERTICAL.
|
||||
*/
|
||||
wxAUI_TB_HORZ_LAYOUT = 1 << 6,
|
||||
|
||||
@@ -755,6 +758,9 @@ public:
|
||||
whereas by default it can be horizontal or vertical and
|
||||
be docked anywhere.
|
||||
@style{wxAUI_TB_HORZ_LAYOUT}
|
||||
For horizontal toolbars, show the text and the icons alongside,
|
||||
not vertically stacked. This style must be used with wxAUI_TB_TEXT
|
||||
and can't be used with wxAUI_TB_VERTICAL.
|
||||
@style{wxAUI_TB_HORIZONTAL}
|
||||
Analogous to wxAUI_TB_VERTICAL, but forces the toolbar
|
||||
to be horizontal.
|
||||
|
||||
Reference in New Issue
Block a user