]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/hyperlinkg.cpp
Added wxDCFontChanger ctor not changing font.
[wxWidgets.git] / src / generic / hyperlinkg.cpp
index 07b9b2468fee253b177d00f6271c43fbc3907850..791b15b3576081e94a447308df5c29a86740caa9 100644 (file)
@@ -79,6 +79,7 @@ bool wxGenericHyperlinkCtrl::Create(wxWindow *parent, wxWindowID id,
     // colours
     m_normalColour = *wxBLUE;
     m_hoverColour = *wxRED;
+    m_visitedColour = wxColour("#551a8b");
     SetForegroundColour(m_normalColour);
 
     // by default the font of an hyperlink control is underlined
@@ -195,7 +196,7 @@ void wxGenericHyperlinkCtrl::OnLeftDown(wxMouseEvent& event)
 void wxGenericHyperlinkCtrl::OnLeftUp(wxMouseEvent& event)
 {
     // the click must be started and ended in the hyperlink rect
-    if (!m_clicking || !GetLabelRect().Contains(event.GetPosition())) 
+    if (!m_clicking || !GetLabelRect().Contains(event.GetPosition()))
         return;
 
     SetForegroundColour(m_visitedColour);