Add support for wxDatePickerCtrl::SetNullText() to XRC
Recognize null-text element.
This commit is contained in:
@@ -894,7 +894,8 @@ wxDatePickerCtrl =
|
|||||||
element object {
|
element object {
|
||||||
attribute class { "wxDatePickerCtrl" } &
|
attribute class { "wxDatePickerCtrl" } &
|
||||||
stdObjectNodeAttributes &
|
stdObjectNodeAttributes &
|
||||||
stdWindowProperties
|
stdWindowProperties &
|
||||||
|
[xrc:p="o"] element null-text {_, t_text }*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -42,6 +42,10 @@ wxObject *wxDateCtrlXmlHandler::DoCreateResource()
|
|||||||
|
|
||||||
SetupWindow(picker);
|
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;
|
return picker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user