git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42956
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int width, int height,
int sizeFlags = wxSIZE_AUTO);
int width, int height,
int sizeFlags = wxSIZE_AUTO);
+ virtual wxSize DoGetBestSize() const;
+
// common part of all ctors
void Init();
// common part of all ctors
void Init();
{
m_macIsUserPane = true;
{
m_macIsUserPane = true;
- if ( !wxWindow::Create(parent, id, pos, size, style, name) )
+ if ( !wxWindow::Create(parent, id, pos, size, style & wxNO_BORDER, name) )
return false;
m_genericImpl = new wxGenericListCtrlHook(this, id, pos, size, style, validator, name);
m_genericImpl->PushEventHandler( new wxMacListCtrlEventDelegate( this, GetId() ) );
return false;
m_genericImpl = new wxGenericListCtrlHook(this, id, pos, size, style, validator, name);
m_genericImpl->PushEventHandler( new wxMacListCtrlEventDelegate( this, GetId() ) );
m_genericImpl->SetSize(x, y, width, height, sizeFlags);
}
m_genericImpl->SetSize(x, y, width, height, sizeFlags);
}
+wxSize wxListCtrl::DoGetBestSize() const
+{
+ if (m_genericImpl)
+ return m_genericImpl->GetBestSize();
+
+ return wxWindow::DoGetBestSize();
+}
+
bool wxListCtrl::SetFont(const wxFont& font)
{
bool rv = true;
bool wxListCtrl::SetFont(const wxFont& font)
{
bool rv = true;