Only show the default close button in wxInfoBar if there are no others.

Assume that user-added buttons can be already used to close the message so
don't show the default close button if any were added.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-10-05 22:55:40 +00:00
parent c0945eb234
commit 6a3f8b4f1f
5 changed files with 74 additions and 18 deletions

View File

@@ -114,7 +114,9 @@ public:
The button added by this method will be shown to the right of the text
(in LTR layout), with each successive button being added to the right
of the previous one.
of the previous one. If any buttons are added to the info bar using
this method, the default "Close" button is not shown as it is assumed
that the extra buttons already allow the user to close it.
Clicking the button will generate a normal EVT_COMMAND_BUTTON_CLICKED
event which can be handled as usual. The default handler in wxInfoBar