Hi
I'm looking for a way to halt the default action when i single click on a listcb item (listbox with the check option enabled). So that I can single click on an item and the checked or unchecked state of the listcb item will not change. However, when I double click on the item, I wish it to change.
I've tried doing this with the "haltdef" and "halt" commands, however I didn't succeed when doing it that way. I also am aware that I could do it with similar code to the below, however, this will still change the state - even if it does reset it to the original state.
on *:dialog:DLG:sclick:1:{
if ($did($dname,1).cstate) { did -s $dname 1 $did($dname,1).sel }
if (!$did($dname,1).cstate) { did -l $dname 1 $did($dname,1).sel }
}
Or if someone has an alternative solution to how I can achieve the same result in a similar manner.
Any help on this would be really appreciated, am sorry if I should have searched better on the forum.
Regards.