X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a69b365fbbd7fe05b78187f4d8336dcaaf4c7485..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/aui/auibar.h?ds=inline diff --git a/include/wx/aui/auibar.h b/include/wx/aui/auibar.h index 66c0eb3c38..a156877b27 100644 --- a/include/wx/aui/auibar.h +++ b/include/wx/aui/auibar.h @@ -211,7 +211,14 @@ public: void SetActive(bool b) { m_active = b; } bool IsActive() const { return m_active; } - void SetHasDropDown(bool b) { m_dropDown = b; } + void SetHasDropDown(bool b) + { + wxCHECK_RET( !b || m_kind == wxITEM_NORMAL, + wxS("Only normal tools can have drop downs") ); + + m_dropDown = b; + } + bool HasDropDown() const { return m_dropDown; } void SetSticky(bool b) { m_sticky = b; } @@ -457,7 +464,7 @@ public: wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = 0); + long style = wxAUI_TB_DEFAULT_STYLE); virtual void SetWindowStyleFlag(long style);