- wxHyperlinkCtrl *hyp = new wxHyperlinkCtrl(this,
- wxID_ANY,
- wxT("This is a long hyperlink"),
- wxT("www.wxwidgets.org"),
- wxDefaultPosition,
- wxDefaultSize,
- style);
+
+ wxGenericHyperlinkCtrl *hyp;
+ if (m_checkGeneric->IsChecked())
+ {
+ hyp = new wxGenericHyperlinkCtrl(this,
+ wxID_ANY,
+ wxT("This is a long hyperlink"),
+ wxT("www.wxwidgets.org"),
+ wxDefaultPosition,
+ wxDefaultSize,
+ style);
+ }
+ else
+ {
+ hyp = new wxHyperlinkCtrl(this,
+ wxID_ANY,
+ wxT("This is a long hyperlink"),
+ wxT("www.wxwidgets.org"),
+ wxDefaultPosition,
+ wxDefaultSize,
+ style);
+ }