Add wxHL_* styles

(ported from 2.8 branch)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2007-02-06 21:54:33 +00:00
parent ff7282e135
commit ba142bfbfa

View File

@ -51,6 +51,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxHyperlinkCtrlXmlHandler, wxXmlResourceHandler)
wxHyperlinkCtrlXmlHandler::wxHyperlinkCtrlXmlHandler()
{
XRC_ADD_STYLE(wxHL_CONTEXTMENU);
XRC_ADD_STYLE(wxHL_ALIGN_LEFT);
XRC_ADD_STYLE(wxHL_ALIGN_RIGHT);
XRC_ADD_STYLE(wxHL_ALIGN_CENTRE);
XRC_ADD_STYLE(wxHL_DEFAULT_STYLE);
AddWindowStyles();
}
@ -61,7 +67,8 @@ wxObject *wxHyperlinkCtrlXmlHandler::DoCreateResource()
SetupWindow(control);
control->Create(m_parentAsWindow, GetID(),
GetParamValue(wxT("label")), GetParamValue(wxT("url")),
GetPosition(), GetSize(), GetStyle());
GetPosition(), GetSize(),
GetStyle(wxT("style"), wxHL_DEFAULT_STYLE));
return control;
}