Cover default button in wxDialog::CreateStdDialogButtonSizer docs

Add a note explaining that when creating a button sizer with this
method, one of the buttons will be usually made the default.

See #23992.

Closes #24001.
This commit is contained in:
PB 2023-10-25 20:30:05 +02:00 committed by Vadim Zeitlin
parent b297edbe79
commit 4ddea5658d

View file

@ -291,6 +291,12 @@ public:
wxCLOSE, wxHELP, wxNO_DEFAULT.
The sizer lays out the buttons in a manner appropriate to the platform.
@note Unlike when using wxStdDialogButtonSizer directly, creating the sizer
with this method usually results in one of its buttons being default
(and having initial focus): @a wxNO_DEFAULT will make the No button
the default, otherwise the OK or Yes button will be set as the default
when present.
*/
wxStdDialogButtonSizer* CreateStdDialogButtonSizer(long flags);