if list id is 2

on *:dialog:name:Sclick:2:{
if (rclick* !iswm $did(2,1)) halt

}

I use this with mdx and popups.dll to provide popups in my dialogs.