Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'autoi technology curriculum book part 53', 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ả | Opt MustDeclareVars 1 Example Func Example Local treeview generalitem displayitem aboutitem compitem Local useritem resitem otheritem startlabel aboutlabel compinfo Local togglebutton infobutton statebutton cancelbutton Local msg item hItem text GUICreate My GUI with treeview 350 215 treeview GUICtrlCreateTreeView 6 6 100 150 BitOR TVS_HASBUTTONS TVS_HASLINES TVS_LINESATROOT TVS_DISABLEDRAGDROP TVS_SHOWSELALWAYS WS_EX_CLIENTEDGE generalitem GUICtrlCreateTreeViewItem General treeview GUICtrlSetColor -1 0x0000C0 displayitem GUICtrlCreateTreeViewItem Display treeview GUICtrlSetColor -1 0x0000C0 aboutitem GUICtrlCreateTreeViewItem About generalitem compitem GUICtrlCreateTreeViewItem Computer generalitem useritem GUICtrlCreateTreeViewItem User generalitem resitem GUICtrlCreateTreeViewItem Resolution displayitem otheritem GUICtrlCreateTreeViewItem Other displayitem startlabel GUICtrlCreateLabel TreeView Demo 190 90 100 20 aboutlabel GUICtrlCreateLabel This little scripts demonstates the using of a treeview-control. 190 70 100 60 GUICtrlSetState -1 GUI_HIDE Hides the aboutlabel -text during initialization compinfo GUICtrlCreateLabel Name @TAB @ComputerName @LF OS @TAB @OSVersion @LF SP @TAB @OSServicePack 120 30 200 80 GUICtrlSetState -1 GUI_HIDE Hides the compinfo -text during initialization GUICtrlCreateLabel 0 170 350 2 SS_SUNKEN togglebutton GUICtrlCreateButton Toggle 35 185 70 20 infobutton GUICtrlCreateButton Info 105 185 70 20 statebutton GUICtrlCreateButton Col. Exp. 175 185 70 20 cancelbutton GUICtrlCreateButton Cancel 245 185 70 20 GUICtrlSetState generalitem BitOR GUI_EXPAND GUI_DEFBUTTON Expand the General -item and paint in bold GUICtrlSetState displayitem BitOR GUI_EXPAND GUI_DEFBUTTON Expand the Display -item and paint in bold GUISetState While 1 msg GUIGetMsg Select Case msg cancelbutton Or msg GUI_EVENT_CLOSE ExitLoop Case msg togglebutton Toggle the bold painting If BitAND GUICtrlRead generalitem GUI_DEFBUTTON Then GUICtrlSetState generalitem 0 .