tailieunhanh - AutoI Technology Curriculum Book part 116

Tham khảo tài liệu 'autoi technology curriculum book part 116', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | IsChecked Returns the state of an item. 1 checked 0 unchecked -1 not a checkbox. Select item Selects an item. Uncheck item Unchecks an item if the item supports it . The item parameter is a string-based parameter that is used to reference a particular treeview item using a combination of text and indices. Indices are 0based. For example Headingl HlSublteml Hl SubItem2 Hl SubItem3 HlSlSubIteml Heading2 Heading3 Each level is separated by . An index is preceded with . Examples Item Item Reference Heading2 Heading2 or 1 H1 SubItem2 Heading1 H1SubItem2 or 0 1 HlSlSubIteml Heading1 H1SubItem3 H1S1SubItem1 or 0 2 0 References can also be mixed like Headingl l . Remarks As AutoIt is a 32-bit application some commands are not available when referencing a 64-bit application as Explorer when running on 64-bit Windows. Related ControlCommand ControlDisable ControlEnable ControlFocus ControlGetPos ControlGetText ControlHide ControlClick ControlListView ControlMove ControlSetText ControlShow StatusbarGetText WinMenuSelectItem WinGetClassList Example Author Zedna include include include gui GUICreate ControlTreeview test 212 212 treeview GUICtrlCreateTreeView 6 6 200 160 BitOR TVS_HASBUTTONS TVS_HASLINES TVS_LINESATROOT TVS_CHECKBOXES WS_EX_CLIENTEDGE h_tree ControlGetHandle gui treeview root GUICtrlCreateTreeViewItem Root treeview item1 GUICtrlCreateTreeViewItem Item 1 root item2 GUICtrlCreateTreeViewItem Item 2 root item3 GUICtrlCreateTreeViewItem Item 3 root item4 GUICtrlCreateTreeViewItem Item 4 root item41 GUICtrlCreateTreeViewItem Item 41 item4 item42 GUICtrlCreateTreeViewItem Item 42 item4 item5 GUICtrlCreateTreeViewItem Item 5 root GUISetState @SW_SHOW some examples ControlTreeView gui h_tree Expand Root ControlTreeView gui h_tree Exists Root Item 4 ControlTreeView gui h_tree Check Root Item 4 ControlTreeView gui h_tree Select Root Item 4 ControlTreeView gui h_tree Expand Root Item 4 While 1 msg GUIGetMsg .