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; }
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = 0);
+ long style = wxAUI_TB_DEFAULT_STYLE);
- void SetWindowStyleFlag(long style);
- long GetWindowStyleFlag() const;
+ virtual void SetWindowStyleFlag(long style);
void SetArtProvider(wxAuiToolBarArt* art);
wxAuiToolBarArt* GetArtProvider() const;
bool m_dragging;
bool m_gripperVisible;
bool m_overflowVisible;
- long m_style;
bool RealizeHelper(wxClientDC& dc, bool horizontal);
static bool IsPaneValid(long style, const wxAuiPaneInfo& pane);