dialog my.first.mdx {
  title "MDX dialog"
  size -1 -1 150 55

  list 10,5 5 140 20,size
  button "Close",20,5 30 140 20, ok
}
alias -l mdx {
  var %dll = $mircdir $+ mdx\debug\mdx.dll
  return $dll(%dll,$1,$2-)
}
alias my.first.mdx dialog -m my.first.mdx my.first.mdx
on *:DIALOG:my.first.mdx:init:0:{
  mdx SetMircVersion $version

  mdx MarkDialog $dname

  mdx SetControlMDX $dname 10 listview droptarget > $mircdir $+ mdx\views\release\views.mdx
  mdx SetBorderStyle $dname 10
  did -i $dname 10 1 params 0 0 100 1 5 0 0 10
  did -i $dname 10 1 $ip
}
on *:DIALOG:my.first.mdx:*:10:{
  echo Event $devent on $dname $+ / $+ $did $+ : $did($dname, $did, 1)
}
