- sizerRight->Add(0, 0, 1, wxCENTRE);
- sizerRight->Add(m_visit, 0, wxCENTRE);
- sizerRight->Add(m_hyperlink, 0, wxCENTRE);
- sizerRight->Add(m_fun, 0, wxCENTRE);
- sizerRight->Add(0, 0, 1, wxCENTRE);
- sizerRight->SetMinSize(150, 0);
- m_sizerHyperlink = sizerRight; // save it to modify it later
+ szHyperlink->Add(0, 0, 1, wxCENTRE);
+ szHyperlink->Add(m_visit, 0, wxCENTRE);
+ szHyperlink->Add(m_hyperlink, 0, wxCENTRE);
+ szHyperlink->Add(m_fun, 0, wxCENTRE);
+ szHyperlink->Add(0, 0, 1, wxCENTRE);
+ szHyperlink->SetMinSize(150, 0);
+
+ if (m_checkGeneric->IsChecked())
+ {
+ m_hyperlinkLong = new wxGenericHyperlinkCtrl(this,
+ wxID_ANY,
+ wxT("This is a long hyperlink"),
+ wxT("www.wxwidgets.org"));
+ }
+ else
+ {
+ m_hyperlinkLong = new wxHyperlinkCtrl(this,
+ wxID_ANY,
+ wxT("This is a long hyperlink"),
+ wxT("www.wxwidgets.org"));
+ }
+
+ szHyperlinkLong->Add(0, 0, 1, wxCENTRE);
+ szHyperlinkLong->Add(szHyperlink, 0, wxCENTRE|wxGROW);
+ szHyperlinkLong->Add(0, 0, 1, wxCENTRE);
+ szHyperlinkLong->Add(m_hyperlinkLong, 0, wxGROW);
+ szHyperlinkLong->Add(0, 0, 1, wxCENTRE);
+