From ba142bfbfac2302652bf48f634ec3bdb95fa640f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 6 Feb 2007 21:54:33 +0000 Subject: [PATCH] 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 --- src/xrc/xh_hyperlink.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xrc/xh_hyperlink.cpp b/src/xrc/xh_hyperlink.cpp index b19f47e8be..7d0f0d5c98 100644 --- a/src/xrc/xh_hyperlink.cpp +++ b/src/xrc/xh_hyperlink.cpp @@ -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; }