mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 14:20:35 +08:00
Don't recreate wxHyperlinkCtrl in widgets sample unnecessarily
There is no need to do this after just changing its label or URL, this shouldn't, and doesn't require full control recreation.
This commit is contained in:
@@ -347,13 +347,11 @@ void HyperlinkWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))
|
||||
void HyperlinkWidgetsPage::OnButtonSetLabel(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
m_hyperlink->SetLabel(m_label->GetValue());
|
||||
CreateHyperlink();
|
||||
}
|
||||
|
||||
void HyperlinkWidgetsPage::OnButtonSetURL(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
m_hyperlink->SetURL(m_url->GetValue());
|
||||
CreateHyperlink();
|
||||
}
|
||||
|
||||
void HyperlinkWidgetsPage::OnAlignment(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
Reference in New Issue
Block a user