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:
parent
ff7282e135
commit
ba142bfbfa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user