X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28583246911da03843797b5090a1eef68b1707a3..c2c87924e7e3906b8cf1f93ebbd362eab17f6857:/src/xrc/xh_hyperlink.cpp diff --git a/src/xrc/xh_hyperlink.cpp b/src/xrc/xh_hyperlink.cpp index f4a7424993..7d0f0d5c98 100644 --- a/src/xrc/xh_hyperlink.cpp +++ b/src/xrc/xh_hyperlink.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/xrc/hyperlink.cpp +// Name: src/xrc/xh_hyperlink.cpp // Purpose: Hyperlink control // Author: David Norris // Modified by: Ryan Norton, Francesco Montorsi @@ -17,10 +17,6 @@ // Pre-compiled header stuff //--------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "hyperlink.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -55,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(); } @@ -65,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; }