mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
*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:
parent
2c7ef9721f
commit
439ea018d2
2 changed files with 4 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue