added wxHeaderCtrlSimple::GetBestFittingWidth() for even more automatic column resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -224,7 +224,17 @@ public:
|
||||
void RemoveSortIndicator();
|
||||
|
||||
protected:
|
||||
// implement/override base class methods
|
||||
virtual wxHeaderColumnBase& GetColumn(unsigned int idx);
|
||||
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle);
|
||||
|
||||
// and define another one to be overridden in the derived classes: it
|
||||
// should return the best width for the given column contents or -1 if not
|
||||
// implemented, we use it to implement UpdateColumnWidthToFit()
|
||||
virtual int GetBestFittingWidth(unsigned int WXUNUSED(idx)) const
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
private:
|
||||
// functions implementing our public API
|
||||
|
Reference in New Issue
Block a user