]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/choice.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / choice.h
index 46f27b9d8a838997cece1f223d551fac8f47fd4c..369dbb517a0d55ba7f1b5508b12202ee117b9f4c 100644 (file)
@@ -58,6 +58,13 @@ public:
     // override wxItemContainer::IsSorted
     virtual bool IsSorted() const { return HasFlag(wxCB_SORT); }
 
     // override wxItemContainer::IsSorted
     virtual bool IsSorted() const { return HasFlag(wxCB_SORT); }
 
+protected:
+    // The generic implementation doesn't determine the height correctly and
+    // doesn't account for the width of the arrow but does take into account
+    // the string widths, so the derived classes should override it and set the
+    // height and add the arrow width to the size returned by this version.
+    virtual wxSize DoGetBestSize() const;
+
 private:
     wxDECLARE_NO_COPY_CLASS(wxChoiceBase);
 };
 private:
     wxDECLARE_NO_COPY_CLASS(wxChoiceBase);
 };