*CtrlLib: TreeCtrl now using GetMinSize for widgets (instead of GetStdSize), OptionTree::SetOption/SetChildren now protected (thanks Typhoor)

git-svn-id: svn://ultimatepp.org/upp/trunk@6249 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-08-18 14:56:20 +00:00
parent 2c7ef9721f
commit 439ea018d2
2 changed files with 4 additions and 3 deletions

View file

@ -115,7 +115,7 @@ Size TreeCtrl::Item::GetValueSize(const Display *treedisplay) const
Size TreeCtrl::Item::GetCtrlSize() const
{
if(!ctrl) return Size(0, 0);
Size csz = ctrl->GetStdSize();
Size csz = ctrl->GetMinSize();
return Size(Nvl(size.cx, csz.cx), Nvl(size.cy, csz.cy));
}

View file

@ -327,8 +327,9 @@ class OptionTree : public TreeCtrl {
Array<Option> aux;
bool manualmode;
void SetOption(int i);
void SetChildren(int id, bool b);
protected:
virtual void SetOption(int id);
virtual void SetChildren(int id, bool b);
public:
Callback WhenOption;