From e806647e7fc9148876ee51f8024121b378343037 Mon Sep 17 00:00:00 2001 From: pb101 Date: Mon, 28 Mar 2016 21:29:09 +0200 Subject: [PATCH] Document that wxInfoBar close button is not used with custom ones Don't say that wxInfoBar always has a close button because this is not the case if any custom buttons are present. Closes #17464. --- interface/wx/infobar.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/wx/infobar.h b/interface/wx/infobar.h index c850b86a74..394fed0e9e 100644 --- a/interface/wx/infobar.h +++ b/interface/wx/infobar.h @@ -18,9 +18,10 @@ higher chance to be noticed by the user but without being annoying. Info bar may show an icon (on the left), text message and, optionally, - buttons allowing the user to react to the information presented. It always - has a close button at the right allowing the user to dismiss it so it isn't - necessary to provide a button just to close it. + buttons allowing the user to react to the information presented. Unless + a custom button was added to the info bar, it also has a close button at + the right allowing the user to dismiss it so it isn't necessary to provide + a button just to close it. wxInfoBar calls its parent wxWindow::Layout() method and assumes that it will change the parent layout appropriately depending on whether the info