DonationCoder.com Software > Skwire Empire
Release: sChecklist
firace:
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
tomos:
I think I broke it :-[
I had created a template list and had duplicated it and renamed it.
Then I (unintentionally!) crashed sChecklist by resizing the list column after having resized the window.
When I restarted, the last created list was not shown, so I tried to recreate it - but wasnt allowed use the same name.
It is there in the Checklist folder but is not shown.
I restarted sChecklist again, and now the duplicated template which I could not rename - that doesnt show either - i.e. new lists are being created and saved, but they are not being remembered by the app.
OK
I think I fixed it again :)
I edited the dat file to include the list I wanted (tiffs in screenshot above) and deleted the other unwanted duplicate.
Now when I add a new list it is saved on close :up:
tomos:
Minor icing-on-the-cake type request:
F2 to edit list name
skwire:
Assuming Listviews accept Unicode characters, this simple hack should work, hopefully...-firace (July 20, 2014, 10:29 AM)
--- End quote ---
Nice little hack. I'll see what I can do to incorporate it.
Minor icing-on-the-cake type request:
F2 to edit list name-tomos (July 22, 2014, 05:12 AM)
--- End quote ---
I'll see what I can do about this, too.
skwire:
Minor icing-on-the-cake type request:
F2 to edit list name-tomos (July 22, 2014, 05:12 AM)
--- End quote ---
Added in the latest build:
Website | Download
v1.0.6 - 2014-07-28
+ Pressing F2 now works to edit a checklist name. (Thanks, tomos)
Assuming Listviews accept Unicode characters, this simple hack should work, hopefully...-firace (July 20, 2014, 10:29 AM)
--- End quote ---
I played with this hack a bit more and it works fine for shorter strings. However, for longer strings, it seems to truncate the output when updating the row with the struck-through data. So, unfortunately, I won't be able to add this.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version