class DropTree : public MultiButton
This class is similar to DropList (widget traditionally named "ComboBox"), but instead of single list of elements it provides the list with tree hierarchy.
Triggers when the tree is about to drop. Can be used to populate the tree just before it is displayed.
Clears the tree and assigns Null as value.
Returns TreeCtrl (PopUpTree is implementation detail class that is publicly derived from TreeCtrl) object so that the tree can be controlled. Another way to access TreeCtrl methods is through operator->.
const TreeCtrl *operator->() const
Access to TreeCtrl methods.
DropTree& MaxHeight(int maxheight_)
Sets the maximum height of TreeCtrl drop-popup in pixels.
DropTree& AutoResize(bool b = true)
If active, the size of TreeCtrl popup is changing based on actual needs (but never exceeds MaxHeight limit).
DropTree& ValueDisplay(const Display& d)
Sets distinct display for selected value. Default is to use TreeCtrl's Display.
DropTree& DropFocus(bool b = true)
If active, pressing drop button sets focus to DropTree widget. Default is not active.
Same as DropFocus(false).
DropTree& SetDropLines(int d)
Sets MaxHeight with argument computed to display maximum of d lines with standard font (e.g. text with standard display).
DropTree& DropWidth(int w)
Changes the width of popup TreeCtrl to w pixels (normally it is equal to the width of DropTree widget).
DropTree& DropWidthZ(int w)
Same as DropWidth(Zx(w)).