Add optional label to wxFileDialogCustomize::AddTextCtrl()
Creating a text with a label is a common operation and can be implemented to look slightly better than AddStaticText() followed by AddTextCtrl() without a label when using IFileDialog.
This commit is contained in:
@@ -1691,8 +1691,7 @@ public:
|
||||
// Note: all the pointers created here cease to be valid once
|
||||
// ShowModal() returns, TransferDataFromCustomControls() is the latest
|
||||
// moment when they can still be used.
|
||||
customizer.AddStaticText("Just some extra text:");
|
||||
m_text = customizer.AddTextCtrl();
|
||||
m_text = customizer.AddTextCtrl("Just some extra text:");
|
||||
m_cb = customizer.AddCheckBox("Enable Custom Button");
|
||||
m_cb->Bind(wxEVT_CHECKBOX, &MyCustomizeHook::OnCheckBox, this);
|
||||
m_btn = customizer.AddButton("Custom Button");
|
||||
|
||||
Reference in New Issue
Block a user