Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

DropTree

 

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.

 

 

Public Member List

 


 

Event<> WhenDrop

Triggers when the tree is about to drop. Can be used to populate the tree just before it is displayed.

 


 

void Clear()

Clears the tree and assigns Null as value.

 


 

PopUpTree& TreeObject()

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->.

 


 

TreeCtrl *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.

 


 

DropTree& NoDropFocus()

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)).

 

 

Do you want to contribute?