X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec376c8fd9ff813392030426acd2317c6fa6527e..d19ce8c49127a8550a784b4d54464c81003a102b:/src/xrc/xh_filepicker.cpp diff --git a/src/xrc/xh_filepicker.cpp b/src/xrc/xh_filepicker.cpp index e617aebb2d..40e8280551 100644 --- a/src/xrc/xh_filepicker.cpp +++ b/src/xrc/xh_filepicker.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_clrpicker.cpp -// Purpose: XML resource handler for wxColourPickerCtrl +// Name: src/xrc/xh_filepicker.cpp +// Purpose: XML resource handler for wxFilePickerCtrl // Author: Francesco Montorsi // Created: 2006-04-17 // RCS-ID: $Id$ @@ -30,6 +30,7 @@ wxFilePickerCtrlXmlHandler::wxFilePickerCtrlXmlHandler() : wxXmlResourceHandler( XRC_ADD_STYLE(wxFLP_FILE_MUST_EXIST); XRC_ADD_STYLE(wxFLP_CHANGE_DIR); XRC_ADD_STYLE(wxFLP_DEFAULT_STYLE); + XRC_ADD_STYLE(wxFLP_USE_TEXTCTRL); AddWindowStyles(); } @@ -39,8 +40,8 @@ wxObject *wxFilePickerCtrlXmlHandler::DoCreateResource() picker->Create(m_parentAsWindow, GetID(), - GetParamValue(wxT("default-path")), - GetParamValue(wxT("message")), + GetParamValue(wxT("value")), + GetText(wxT("message")), GetParamValue(wxT("wildcard")), GetPosition(), GetSize(), GetStyle(_T("style"), wxFLP_DEFAULT_STYLE),