User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

koda:en:documentation:control_treeview [2014/07/10 10:48] (current)
Line 1: Line 1:
 +====== TreeView ======
 +|class="​cboxcell1"​|{{ ​ control_treeview.gif ​ |}}
 +Creates a TreeView control
 +|**Align**|{{KODA>​VAR>​Align}} |
 +|**Color**|{{KODA>​VAR>​Color}} |
 +|**ContextMenu**|{{KODA>​VAR>​ContextMenu}} |
 +|**Cursor**|{{KODA>​VAR>​Cursor}} |
 +|**Enabled**|False generates <color blue>​GUICtrlSetState(-1,​ $GUI_DISABLE)</​color>​ |
 +|**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</​color>​ |
 +|**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 <color blue>​Case</​color> ​ or (in OnEvent mode) a call to <color blue>​GUISetOnEvent</​color>​ 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 <​key>​Tab</​key>​ and <​key>​S-Tab</​key>​ 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 <​key>​C-t</​key>​ to open it. |
 +|**Visible**|If False, generates <color blue>​GUICtrlSetState(-1,​ $GUI_HIDE)</​color>​ |
 +|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 <​key>​Tab</​key>​ and <​key>​S-Tab</​key>​ |
 +#​remarks_header[Extra Styles:]#
 +[[control_imagelist|]] control
koda/en/documentation/control_treeview.txt ยท Last modified: 2014/07/10 10:48 (external edit)