Ok something like this?

on 1:dialog:popusn:sclick:14:{
did -c $dname 14
did -u $dname 14,15,16,17,18,20,

then I have to add 2 push botton like this:

check "Select none", 1oo, 94 83 37 12, push
check "Select all", 101, 94 96 37 12, push