X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba142bfbfac2302652bf48f634ec3bdb95fa640f..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/xrc/xh_hyperlink.cpp diff --git a/src/xrc/xh_hyperlink.cpp b/src/xrc/xh_hyperlink.cpp index 7d0f0d5c98..b70eb3f1fe 100644 --- a/src/xrc/xh_hyperlink.cpp +++ b/src/xrc/xh_hyperlink.cpp @@ -56,7 +56,7 @@ wxHyperlinkCtrlXmlHandler::wxHyperlinkCtrlXmlHandler() XRC_ADD_STYLE(wxHL_ALIGN_RIGHT); XRC_ADD_STYLE(wxHL_ALIGN_CENTRE); XRC_ADD_STYLE(wxHL_DEFAULT_STYLE); - + AddWindowStyles(); } @@ -64,11 +64,18 @@ wxObject *wxHyperlinkCtrlXmlHandler::DoCreateResource() { XRC_MAKE_INSTANCE(control, wxHyperlinkCtrl) + control->Create + ( + m_parentAsWindow, + GetID(), + GetText(wxT("label")), + GetParamValue(wxT("url")), + GetPosition(), GetSize(), + GetStyle(wxT("style"), wxHL_DEFAULT_STYLE), + GetName() + ); + SetupWindow(control); - control->Create(m_parentAsWindow, GetID(), - GetParamValue(wxT("label")), GetParamValue(wxT("url")), - GetPosition(), GetSize(), - GetStyle(wxT("style"), wxHL_DEFAULT_STYLE)); return control; }