X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42c09d20bbcfe511b26af394fa461064dbda1018..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/xrc/xh_dirpicker.cpp?ds=sidebyside diff --git a/src/xrc/xh_dirpicker.cpp b/src/xrc/xh_dirpicker.cpp index ab589e82b3..ff750e15d1 100644 --- a/src/xrc/xh_dirpicker.cpp +++ b/src/xrc/xh_dirpicker.cpp @@ -27,6 +27,7 @@ wxDirPickerCtrlXmlHandler::wxDirPickerCtrlXmlHandler() : wxXmlResourceHandler() XRC_ADD_STYLE(wxDIRP_USE_TEXTCTRL); XRC_ADD_STYLE(wxDIRP_DIR_MUST_EXIST); XRC_ADD_STYLE(wxDIRP_CHANGE_DIR); + XRC_ADD_STYLE(wxDIRP_SMALL); XRC_ADD_STYLE(wxDIRP_DEFAULT_STYLE); AddWindowStyles(); } @@ -37,10 +38,10 @@ wxObject *wxDirPickerCtrlXmlHandler::DoCreateResource() picker->Create(m_parentAsWindow, GetID(), - GetParamValue(wxT("default-path")), - GetParamValue(wxT("message")), + GetParamValue(wxT("value")), + GetText(wxT("message")), GetPosition(), GetSize(), - GetStyle(_T("style"), wxDIRP_DEFAULT_STYLE), + GetStyle(wxT("style"), wxDIRP_DEFAULT_STYLE), wxDefaultValidator, GetName());