Add support for wxDatePickerCtrl::SetNullText() to XRC
Recognize null-text element.
This commit is contained in:
parent
02f1ee3987
commit
9bc6c3c234
@ -894,7 +894,8 @@ wxDatePickerCtrl =
|
||||
element object {
|
||||
attribute class { "wxDatePickerCtrl" } &
|
||||
stdObjectNodeAttributes &
|
||||
stdWindowProperties
|
||||
stdWindowProperties &
|
||||
[xrc:p="o"] element null-text {_, t_text }*
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user