Make IsCheckable true by default and switch to explicitly disallowing it
Also add a new accessor to wxAuiToolBarItem to make it easier to determine when a tool can be checked.
This commit is contained in:
parent
65e124bb64
commit
afbb334a26
10 changed files with 28 additions and 17 deletions
|
|
@ -211,6 +211,11 @@ public:
|
|||
void SetAlignment(int l) { m_alignment = l; }
|
||||
int GetAlignment() const { return m_alignment; }
|
||||
|
||||
bool CanBeToggled() const
|
||||
{
|
||||
return m_kind == wxITEM_CHECK || m_kind == wxITEM_RADIO;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
wxWindow* m_window; // item's associated window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue