To retrieve selection states use:
var
i: integer
begin
for i := 0 to Cartwall.GetPlayerCount - 1 do
if Cartwall.GetActivePage.GetItems.GetItem(i).GetSelected then
begin
// do something
end;
end;
For the other states you might have a look at this code here.