virtual bool ShouldInheritColours() const { return false; }
virtual void SetFocus();
+ virtual wxSize DoGetBestSize() const;
+
// implementation
// --------------
void OnGetToolTip( wxTreeEvent &event );
void OnInternalIdle( );
+ virtual wxSize DoGetBestSize() const;
+
virtual wxVisualAttributes GetDefaultAttributes() const
{
return GetClassDefaultAttributes(GetWindowVariant());
m_mainWin->SetFocus();
}
+wxSize wxGenericListCtrl::DoGetBestSize() const
+{
+ // Something is better than nothing...
+ // 100x80 is what the MSW version will get from the default
+ // wxControl::DoGetBestSize
+ return wxSize(100,80);
+}
+
// ----------------------------------------------------------------------------
// virtual list control support
// ----------------------------------------------------------------------------
}
+wxSize wxGenericTreeCtrl::DoGetBestSize() const
+{
+ // something is better than nothing...
+ // 100x80 is what the MSW version will get from the default
+ // wxControl::DoGetBestSize
+ return wxSize(100,80);
+}
+
+
// NOTE: If using the wxListBox visual attributes works everywhere then this can
// be removed, as well as the #else case below.
#define _USE_VISATTR 0
wxTreeListMainWindow* GetMainWindow() const
{ return m_main_win; }
+ virtual wxSize DoGetBestSize() const;
+
protected:
// header window, responsible for column visualization and manipulation
wxTreeListHeaderWindow* m_header_win;
void wxTreeListCtrl::SetFocus()
{ m_main_win->SetFocus(); }
+
+wxSize wxTreeListCtrl::DoGetBestSize() const
+{
+ // something is better than nothing...
+ return wxSize(100,80);
+}