User Tools

Site Tools


koda:en:documentation:control_treeview

Differences

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 ======
 +{{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 <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>​ |
 +
 +#​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 <​key>​Tab</​key>​ and <​key>​S-Tab</​key>​ |
 +|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
koda/en/documentation/control_treeview.txt ยท Last modified: 2014/07/10 10:48 (external edit)