Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: DoubleClick OnEvent with Array

$
0
0
Welcome to this AutoHotkey forum!

CODE:

#Requires AutoHotkey v2.0
g := Gui(, 'Test'), g.SetFont('s10')
LV := g.AddListView('w300', [1, 2])
LV.Add , 'abc', 'def'
LV.Add , 'ghi', 'jkl'
LV.ModifyCol(COL := 1, WIDTH := 50)
LV.ModifyCol(COL := 2, WIDTH := 50)
LV.OnEvent 'DoubleClick', LV_DoubleClick
g.Show

LV_DoubleClick(LV, row) {
MsgBox row, 'Row number', 'Iconi'
MsgBox LV.GetText(row, COL := 1), 'Column 1'
MsgBox LV.GetText(row, COL := 2), 'Column 2'
}

Statistics: Posted by mikeyww — Today, 14:51



Viewing all articles
Browse latest Browse all 579

Trending Articles