37 FXTreeItemDynamic(
const FXString& text, FXIcon* oi =
nullptr, FXIcon* ci =
nullptr,
void* ptr =
nullptr);
44 void draw(
const FXTreeList* list, FXDC& dc, FXint xx, FXint yy, FXint, FXint hh)
const;
88 FXTreeItem*
getItemAt(FXint x, FXint y)
const;
#define GUIDesignTextColorBlack
black color (for correct text)
FXColor myTextColor
set text color
void setTextColor(FXColor clr)
Change text color.
void draw(const FXTreeList *list, FXDC &dc, FXint xx, FXint yy, FXint, FXint hh) const
draw tree item
FXTreeItem * prependItem(FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=GUIDesignTextColorBlack)
prepend item with given text and icon
void show()
Show MFXTreeListDynamic.
std::vector< FXTreeItemDynamic * > myFXTreeItemDynamicItems
list with current FXTreeItemDynamic elements
void clearItems()
clear items
FXTreeItem * appendItem(FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=GUIDesignTextColorBlack)
append item with given text and icon
FXint getNumItems()
get num items
FXint mySelectedItem
selected item
long onLeftBtnPress(FXObject *, FXSelector, void *)
void resetSelectedItem()
reset selected item
MFXTreeListDynamic(const MFXTreeListDynamic &)=delete
Invalidated copy constructor.
MFXTreeListDynamic()
default constructor
void hide()
Hide MFXTreeListDynamic.
FXWindow * getFXWindow()
get FXWindows associated with this MFXTreeListDynamic
FXTreeItem * getItemAt(FXint x, FXint y) const
Get item at x,y, if any.
MFXTreeListDynamic & operator=(const MFXTreeListDynamic &)=delete
Invalidated assignment operator.
FXint getSelectedIndex()
getSelected item index
FXTreeItemDynamic * getItem(FXint index) const
Get item.