on *:dialog:[color:red]name[/color]:init:*: did -b $dname [color:red]ID_OF_BUTTON[/color]
on *:dialog:[color:red]name[/color]:sclick:[color:red]ID_OF_LISTBOX[/color]: did -e $dname [color:red]ID_OF_BUTTON[/color]
Half of this stuff is explained in the help file.. Feel free to read it some time
yes i understand those events :P
but i dont understand what should i write in List SCLICK
so it detects if LIST is empty or not ?
i have this code:
if ($did = 46) {
if ($did(46).lines == 0) { .did -b protect 49 }
}
where 46 is list control and 49 is button
and when list control is clicked on (and has no lines)
button does NOT become disabled