Add a flag to wxUpdateUIEvent to tell if the item supports the check action

Not all items support check being set in an UpdateUIEvent handler,
so it is nice to provide an API to find out if the item supports it.

Fixes #13369
This commit is contained in:
Ian McInerney
2020-08-20 23:10:42 +01:00
parent 5192feb38e
commit 65e124bb64
9 changed files with 28 additions and 1 deletions

View File

@@ -2374,6 +2374,13 @@ public:
*/
bool GetEnabled() const;
/**
Returns @true if the UI element can be checked.
@since 3.1.5
*/
bool IsCheckable() const;
/**
Static function returning a value specifying how wxWidgets will send update
events: to all windows, or only to those which specify that they will process