TAILIEUCHUNG - AutoIT Help part 48

Tham khảo tài liệu 'autoit help part 48', 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ả | Function Reference GUICtrlCreateList tao mot List control cho GUI de chon. GUICtrlCreateList text left top width height style exStyle Parameters text text hiện trị sẵn trên control left tọa độ X top tọa độ Y width chiều rộng height chiều cao style kiểu. xem thêm GUI Control Styles Appendix. default -1 LBS_SORT WS_BORDER WS_VSCROLL forced styles WS_TABSTOP LBS_NOTIFY exStyle kiểu mở rộng. xem Extended Style Table. Return Value Success trà lai ControlID Failure Returns 0. Remarks để lấy giá trị ddang đc chọn của control ta dùng GUICtrlRead. để đặt các thuộc tính cho control ta dùng GUICtrlSet. The different list entries that can be selected can be set with GUICtrlSetData có thể đặt đc tối ta bao nhiêu item nhờ hàm GUICtrlSetLimit để sử dụng nhiều kiểu trong style ta dùng BitOr GUI_SS_DEFAULT_LIST newstyle . . để có thể dùng đc các biến trên ta cần phải khai báo thư viện include in your script. Default resizing is GUI_DOCKAUTO size and position will occur. Related GUICoordMode Option GUICtrlSetData GUICtrlSetLimit GUICtrlSet. GUIGetMsg Example include Opt MustDeclareVars 1 Example Func Example Local MESSAGE The following buttons have been clicked Local add clear mylist close msg GUICreate My GUI list will create a dialog box that when displayed is centered add GUICtrlCreateButton Add 64 32 75 25 clear GUICtrlCreateButton Clear 64 72 75 25 mylist GUICtrlCreateList buttons that have been clicked 176 32 121 97 GUICtrlSetLimit -1 200 to limit horizontal scrolling GUICtrlSetData -1 MESSAGE close GUICtrlCreateButton my closing button 64 160 175 25 GUISetState msg 0 While msg GUI_EVENT_CLOSE msg GUIGetMsg Select Case msg add GUICtrlSetData mylist You clicked button No1 Case msg clear GUICtrlSetData mylist Case msg close MsgBox 0 the closing button has been clicked 2 Exit EndSelect WEnd EndFunc Example Function Reference GUICtrlCreateListV iew Creates a ListView control for the GUI. GUICtrlCreateListView text left top width height style

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.