I've just tested it with a standard listview and it works beautifully for me... Even with accented characters!
I hope you can actually use this in sCheckList.
EDIT: Cleaned up code.
Gui, Add, ListView, r20 w330 gMyListView, Name|Size (KB)
Loop, C:\*.*
LV_Add("", A_LoopFileName, A_LoopFileSizeKB)
LV_ModifyCol()
LV_ModifyCol(2, "Integer")
Gui, Show
return
MyListView:
if A_GuiEvent = DoubleClick
{
LV_GetText(RowText, A_EventInfo)
if checked%A_EventInfo%
out := Unstrike(RowText)
else
out := Strike(RowText)
checked%A_EventInfo% := !checked%A_EventInfo%
LV_Modify(A_EventInfo,Col1, out)
}
return
Strike(str) {
loop % strlen(str)
result .= SubStr(str, A_Index, 1) Chr(0x336)
return result
}
Unstrike(str) {
loop % strlen(str)
StringReplace, result,str, % Chr(0x336),, All
return result
}
GuiClose:
ExitApp