Add support for showing "elevation" icon in wxMSW buttons.
Add, document and test in the widgets sample wxButton::SetAuthNeeded(). Closes #11705. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,6 +146,19 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxButtonNameStr);
|
||||
|
||||
/**
|
||||
Returns @true if an authentication needed symbol is displayed on the
|
||||
button.
|
||||
|
||||
@remarks This method always returns @false if the platform is not
|
||||
Windows Vista or newer.
|
||||
|
||||
@see SetAuthNeeded()
|
||||
|
||||
@since 2.9.1
|
||||
*/
|
||||
bool GetAuthNeeded() const;
|
||||
|
||||
/**
|
||||
Return the bitmap shown by the button.
|
||||
|
||||
@@ -223,6 +236,19 @@ public:
|
||||
*/
|
||||
wxString GetLabel() const;
|
||||
|
||||
/**
|
||||
Sets whether an authentication needed symbol should be displayed on the
|
||||
button.
|
||||
|
||||
@remarks This method doesn't do anything if the platform is not Windows
|
||||
Vista or newer.
|
||||
|
||||
@see GetAuthNeeded()
|
||||
|
||||
@since 2.9.1
|
||||
*/
|
||||
void SetAuthNeeded(bool needed = true);
|
||||
|
||||
/**
|
||||
Sets the bitmap to display in the button.
|
||||
|
||||
|
Reference in New Issue
Block a user