- // hyperlink
-#if wxUSE_HYPERLINKCTRL
- panel = new wxPanel(m_book);
- m_hyperlink = new wxHyperlinkCtrl(panel, ID_HYPERLINK,
- _T("Click here to go to Google!"),
- _T("http://www.google.com"),
- wxPoint(20, 20));
- m_hyperlink->SetVisitedColour(m_hyperlink->GetNormalColour());
- m_hyperlink->SetFont(*wxITALIC_FONT);
- m_hyperlink->SetBackgroundColour(*wxWHITE);
-
- // this hyperlink will automatically call wxLaunchDefaultBrowser on user's clicks
- new wxHyperlinkCtrl(panel, wxID_ANY, wxT("http://www.test.com"),
- wxEmptyString, wxPoint(20, 50));
-
- m_book->AddPage(panel, _T("wxHyperlinkCtrl"));
-#endif
-