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:
Vadim Zeitlin
2010-02-08 19:52:00 +00:00
parent 126254a8d0
commit f2d7fdf7b0
7 changed files with 99 additions and 9 deletions

View File

@@ -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.