====== TreeView ====== {{page>commctrl}} {{page>commstyle}} {|class="cboxtable" |- |class="cboxcell1"|{{ control_treeview.gif |}} |class="cboxcell2"|**TATreeView** |} Creates a TreeView control #remarks_header[Properties:]# |**Align**|{{KODA>VAR>Align}} | |**Color**|{{KODA>VAR>Color}} | |**ContextMenu**|{{KODA>VAR>ContextMenu}} | |**Cursor**|{{KODA>VAR>Cursor}} | |**Enabled**|False generates GUICtrlSetState(-1, $GUI_DISABLE) | |**Font**|{{KODA>VAR>Font}} | |**Left,Top**|{{KODA>VAR>Left,Top}} | |**Width,Height**|{{KODA>VAR>Width,Height}} | |**Hint**|Text that appears when cursor hovers over control. Generates call to GUICtrlSetTip | |**Images**| If nodes are to have icons, select an ImageList from drop-down. The ImageList must already exist.| |**Items**| Nodes. Double-click to the right to design tree with [[proped_treeview_editor]] | |**Name**|{{KODA>VAR>Name}} | |**OnClick**|Generates (in Message Loop mode) a Case or (in OnEvent mode) a call to GUISetOnEvent and a skeleton event function. Double-click to right to open [[koda:documentation:proped_events_editor]] | |**Resizing**|{{KODA>VAR>Resizing}} | |**TabOrder**|Sequence in which controls are selected with the Tab and S-Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the [[dialog_tab_order_editor|TabOrder Visual Editor]]: press C-t to open it. | |**Visible**|If False, generates GUICtrlSetState(-1, $GUI_HIDE) | #remarks_header[Styles:]# |TVS_HASBUTTONS|Shows **+** and **-** buttons next to parent items user can expand and collapse trees | |TVS_HASLINES|Lines show the hierarchy of nodes clearly | |TVS_LINESATROOT|Shows lines to link items at the root. Requires TVS_HASLINES | |TVS_EDITLABELS|Allows editing of node labels at run-time| |TVS_DISABLEDRAGDROP|Prevent adding nodes to tree by drag-n-drop operations at run-time| |TVS_SHOWSELALWAYS|Retains selection of node when control loses focus | |TVS_CHECKBOXES|Shows check-box square to left of each node| |TVS_TRACKSELECT|Cursor is pointer-finger and, when mouse hovres over a node, its text is underlined | |TVS_SINGLEEXPAND|Single-clicking (rather than double-clicking) on a node expands it. Cannot use with TVS_HASLINES | |TVS_FULLROWSELECT|Shows selection with a bar across the width of the control, rather than just highlighting the node | |TVS_NOSCROLL|Shows no scroll bars | |TVS_NONEVENHEIGHT|Makes the rows in the control slightly taller | |WS_TABSTOP|Control can be selected with Tab and S-Tab | |WS_HSCROLL|{{KODA>VAR>WS_HSCROLL}} | |WS_VSCROLL|{{KODA>VAR>WS_VSCROLL}} | |WS_VISIBLE|{{KODA>VAR>WS_VISIBLE}} | |WS_BORDER|{{KODA>VAR>WS_BORDER}} | |WS_CLIPSIBLINGS|{{KODA>VAR>WS_CLIPSIBLINGS}} | #remarks_header[Extra Styles:]# |WS_EX_CLIENTEDGE|{{KODA>VAR>WS_EX_CLIENTEDGE}}| |WS_EX_STATICEDGE|{{KODA>VAR>WS_EX_STATICEDGE}} | #remarks_header[Remarks:]# None #remarks_header[Related:]# [[control_imagelist|]] control