Kiểm tra checkbox trong listview Autohotkey
Gui, Add, ListView, vMyListView gMyListView AltSubmit Checked, Col 1|Col 2|Col 3
Loop, 3
LV_Add(, "test 1 " A_Index, "test 2 " A_Index, "test 3 " A_Index)
Loop, 3
LV_ModifyCol(A_Index)
Gui, Show
return
MyListView:
if (A_GuiEvent == "I")
{
if InStr(ErrorLevel, "C", true)
MsgBox % "Row " A_EventInfo " was checked."
else if InStr(ErrorLevel, "c", true)
MsgBox % "Row " A_EventInfo " was unchecked."
}
return
GuiClose:
ExitApp
Đăng nhận xét