So no actual event exists for the checking of the box on the listicongadget. Okay, your method works and is a good idea, thanks for that.
The second example dies with a "Line 13: WndProc not declared" but works with that commented out.
Thanks for that RASHAD, very helpful
oops, no, it doesn't. This line "GetGadgetItemState(1, row) & #PB_ListIcon_Checked" referred to a row and there was nowhere for the row value to be found.
So I added a "row = GetGadgetState(1)" but still getting -1.
Give me a few moments and I will see if I can fix it.
**EDIT** Ah, I see. Your missing WNDPROC must set the gadget state via API so that GetGadgetState will set the state because normally GetGadgetState will not get the state when the checkbox is checked so we need the API to check the line.
I shall wait for the missing WNDPROC

:)