Add support for wxDatePickerCtrl::SetNullText() to XRC

Recognize null-text element.
This commit is contained in:
Vadim Zeitlin 2020-11-05 01:39:20 +01:00
parent 02f1ee3987
commit 9bc6c3c234
2 changed files with 6 additions and 1 deletions

View File

@ -894,7 +894,8 @@ wxDatePickerCtrl =
element object {
attribute class { "wxDatePickerCtrl" } &
stdObjectNodeAttributes &
stdWindowProperties
stdWindowProperties &
[xrc:p="o"] element null-text {_, t_text }*
}

View File

@ -42,6 +42,10 @@ wxObject *wxDateCtrlXmlHandler::DoCreateResource()
SetupWindow(picker);
// Note that we want to set this one even if it's empty.
if ( HasParam(wxS("null-text")) )
picker->SetNullText(GetText(wxS("null-text")));
return picker;
}