// reserved for internal use only
#define wxHYPERLINKCTRL_POPUP_COPY_ID 16384
+const wxChar wxHyperlinkCtrlNameStr[] = wxT("hyperlink");
+
// ----------------------------------------------------------------------------
// wxHyperlinkCtrl
// ----------------------------------------------------------------------------
f.SetUnderlined(true);
SetFont(f);
- CacheBestSize(DoGetBestSize());
- SetMinSize(GetBestSize());
- SetSize (DoGetBestSize());
-
+ SetInitialSize(size);
+
return true;
}
dc.SetFont(GetFont());
dc.GetTextExtent(GetLabel(), &w, &h);
- return wxSize(w, h);
+ wxSize best(w, h);
+ CacheBestSize(best);
+ return best;
}
-void wxHyperlinkCtrl::DoGetSize(int *width, int *height) const
-{
- if (width) *width = GetBestSize().GetWidth();
- if (height) *height = GetBestSize().GetHeight();
-}
void wxHyperlinkCtrl::SetNormalColour(const wxColour &colour)
{