Get the build 71 and try something like this:
| Code: |
todolist id="Todo List.todolist" origin1="TOP-LEFT" x1="0" y1="0" origin2="BOTTOM-RIGHT" x2="0" y2="0">
item>
appearance padding="10,0,0,3" element="font.normal" color="255,255,255,255" effect="NORMAL" align="TOP-LEFT" />
button id="Todo List.item.button" element="bitmap.checkbox.checked" origin="TOP-LEFT" x="0" y="0" action="Shadow4_Todo_Toggle(#WINDOW#, #COUNT#)" />
/item>
/todolist>
|
| Code: |
function Shadow4_Todo_Toggle(window, count)
value = Rainlendar_GetItemValue("Todo List", "Todo List.item.button." .. count, "element"«»)
if (value == "bitmap.checkbox.checked"«») then
Rainlendar_SetItemValue("Todo List", "Todo List.item.button." .. count, "element", "bitmap.checkbox.unchecked"«»)
else
Rainlendar_SetItemValue("Todo List", "Todo List.item.button." .. count, "element", "bitmap.checkbox.checked"«»)
end
Rainlendar_Redraw(0, window)
end
|