implemented GetBestSize()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-04-01 13:55:21 +00:00
parent c7e111cd98
commit c4ca49cde3
4 changed files with 80 additions and 58 deletions

View File

@@ -122,7 +122,10 @@ public:
#if wxUSE_TOOLTIPS
void ApplyToolTip( GtkTooltips *tips, const wxChar *tip );
#endif // wxUSE_TOOLTIPS
wxSize LayoutItems();
// reposition the radio buttons correctly unless justCalc == true and
// reutrn the total size needed to accomodate them
wxSize LayoutItems(bool justCalc) const;
virtual void DoSetSize( int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO );
virtual void OnInternalIdle();
@@ -133,6 +136,9 @@ public:
wxList m_boxes;
protected:
// implement some base class methods
virtual wxSize DoGetBestSize() const;
// common part of all ctors
void Init();