remove ugly AD-HOC FIX for wxHyperlinkCtrl; use the generic facilities of RegisterControl() instead (patch by Utensil Candel)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-10-13 08:39:10 +00:00
parent 101adcd54c
commit 88300af4db
2 changed files with 1 additions and 5 deletions

View File

@@ -185,10 +185,6 @@ wxBitmap AutoCaptureMechanism::Capture(Control& ctrl)
ctrl.name.StartsWith(_T("wx"), &(ctrl.name)); ctrl.name.StartsWith(_T("wx"), &(ctrl.name));
ctrl.name.MakeLower(); ctrl.name.MakeLower();
// AD-HOC FIX for wxHyperlink
if (ctrl.name == "generichyperlinkctrl")
ctrl.name = "hyperlinkctrl";
// take the screenshot // take the screenshot
wxBitmap screenshot = Capture(rect); wxBitmap screenshot = Capture(rect);

View File

@@ -321,7 +321,7 @@ void ScreenshotFrame::OnCaptureAllControls(wxCommandEvent& WXUNUSED(event))
auto_cap.RegisterControl(m_slider1); auto_cap.RegisterControl(m_slider1);
auto_cap.RegisterControl(m_toggleBtn1, AJ_Union); auto_cap.RegisterControl(m_toggleBtn1, AJ_Union);
auto_cap.RegisterControl(m_toggleBtn2, AJ_UnionEnd); auto_cap.RegisterControl(m_toggleBtn2, AJ_UnionEnd);
auto_cap.RegisterControl(m_hyperlink1); auto_cap.RegisterControl(m_hyperlink1, wxT("wxHyperlinkCtrl"));
auto_cap.RegisterControl(m_spinCtrl1, AJ_RegionAdjust); auto_cap.RegisterControl(m_spinCtrl1, AJ_RegionAdjust);
auto_cap.RegisterControl(m_spinBtn1); auto_cap.RegisterControl(m_spinBtn1);
auto_cap.RegisterControl(m_scrollBar1); auto_cap.RegisterControl(m_scrollBar1);