21 #ifndef FXTREELISTBOX_H 22 #define FXTREELISTBOX_H 33 TREELISTBOX_NORMAL = 0
66 long onFocusUp(
FXObject*,FXSelector,
void*);
67 long onFocusDown(
FXObject*,FXSelector,
void*);
68 long onFocusSelf(
FXObject*,FXSelector,
void*);
69 long onMouseWheel(
FXObject*,FXSelector,
void*);
70 long onFieldButton(
FXObject*,FXSelector,
void*);
71 long onTreeUpdate(
FXObject*,FXSelector,
void*);
72 long onTreeForward(
FXObject*,FXSelector,
void*);
73 long onTreeClicked(
FXObject*,FXSelector,
void*);
74 long onTreeCommand(
FXObject*,FXSelector,
void*);
77 ID_TREE=FXPacker::ID_LAST,
84 FXTreeListBox(
FXComposite *p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD);
87 virtual void create();
90 virtual void detach();
93 virtual void destroy();
96 virtual void layout();
99 virtual void enable();
102 virtual void disable();
105 virtual FXint getDefaultWidth();
108 virtual FXint getDefaultHeight();
111 FXint getNumItems()
const;
114 FXint getNumVisible()
const;
117 void setNumVisible(FXint nvis);
126 FXbool isItemCurrent(
const FXTreeItem* item)
const;
129 virtual void setCurrentItem(
FXTreeItem* item,FXbool notify=
false);
135 FXint fillItems(
FXTreeItem* father,
const FXchar *
const *strings,
FXIcon* oi=
nullptr,
FXIcon* ci=
nullptr,FXptr ptr=
nullptr,FXbool notify=
false);
171 void removeItem(
FXTreeItem* item,FXbool notify=
false);
177 void clearItems(FXbool notify=
false);
198 FXTreeItem* findItemByData(FXptr ptr,
FXTreeItem* start=
nullptr,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP)
const;
219 void setItemData(
FXTreeItem* item,FXptr ptr)
const;
222 FXptr getItemData(
const FXTreeItem* item)
const;
225 FXbool isItemLeaf(
const FXTreeItem* item)
const;
228 FXbool isItemEnabled(
const FXTreeItem* item)
const;
237 void showMenu(FXbool shw);
240 FXbool isMenuShown()
const;
246 void sortRootItems();
252 void setFont(
FXFont* fnt);
258 void setListStyle(FXuint style);
261 FXuint getListStyle()
const;
264 void setShrinkWrap(FXbool flag);
267 FXbool getShrinkWrap()
const;
270 FXTreeListSortFunc getSortFunc()
const;
273 void setSortFunc(FXTreeListSortFunc func);
276 void setHelpText(
const FXString& txt);
279 const FXString& getHelpText()
const;
282 void setTipText(
const FXString& txt);
288 virtual void save(
FXStream& store)
const;
Tree list Item.
Definition: FXTreeList.h:52
A Tree List Widget organizes items in a hierarchical, tree-like fashion.
Definition: FXTreeList.h:243
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
The Tree List Box behaves very much like a List Box, except that it supports a hierarchical, tree structured display of the items.
Definition: FXTreeListBox.h:53
Definition: FX4Splitter.h:28
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:42
Packer is a layout manager which automatically places child windows inside its area against the left...
Definition: FXPacker.h:48
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42