]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_hyperlink.cpp
wxMSW: return correct value from wxMessageDialog::GetReturnCode().
[wxWidgets.git] / src / xrc / xh_hyperlink.cpp
index 7d0f0d5c98440421fd9089ff55547c0cd9189b68..870b7b4707eaf825793d07694dcab8e6d0f649a8 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      David Norris <danorris@gmail.com>
 // Modified by: Ryan Norton, Francesco Montorsi
 // Created:     04/02/2005
-// RCS-ID:      $Id$
 // Copyright:   (c) 2005 David Norris
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -56,7 +55,7 @@ wxHyperlinkCtrlXmlHandler::wxHyperlinkCtrlXmlHandler()
     XRC_ADD_STYLE(wxHL_ALIGN_RIGHT);
     XRC_ADD_STYLE(wxHL_ALIGN_CENTRE);
     XRC_ADD_STYLE(wxHL_DEFAULT_STYLE);
-    
+
     AddWindowStyles();
 }
 
@@ -64,11 +63,18 @@ wxObject *wxHyperlinkCtrlXmlHandler::DoCreateResource()
 {
     XRC_MAKE_INSTANCE(control, wxHyperlinkCtrl)
 
+    control->Create
+             (
+                m_parentAsWindow,
+                GetID(),
+                GetText(wxT("label")),
+                GetParamValue(wxT("url")),
+                GetPosition(), GetSize(),
+                GetStyle(wxT("style"), wxHL_DEFAULT_STYLE),
+                GetName()
+             );
+
     SetupWindow(control);
-    control->Create(m_parentAsWindow, GetID(),
-        GetParamValue(wxT("label")), GetParamValue(wxT("url")),
-        GetPosition(), GetSize(),
-        GetStyle(wxT("style"), wxHL_DEFAULT_STYLE));
 
     return control;
 }