Add wxHL_* styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,6 +51,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxHyperlinkCtrlXmlHandler, wxXmlResourceHandler)
|
|||||||
|
|
||||||
wxHyperlinkCtrlXmlHandler::wxHyperlinkCtrlXmlHandler()
|
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();
|
AddWindowStyles();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,7 +67,8 @@ wxObject *wxHyperlinkCtrlXmlHandler::DoCreateResource()
|
|||||||
SetupWindow(control);
|
SetupWindow(control);
|
||||||
control->Create(m_parentAsWindow, GetID(),
|
control->Create(m_parentAsWindow, GetID(),
|
||||||
GetParamValue(wxT("label")), GetParamValue(wxT("url")),
|
GetParamValue(wxT("label")), GetParamValue(wxT("url")),
|
||||||
GetPosition(), GetSize(), GetStyle());
|
GetPosition(), GetSize(),
|
||||||
|
GetStyle(wxT("style"), wxHL_DEFAULT_STYLE));
|
||||||
|
|
||||||
return control;
|
return control;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user