I am trying to use the Window control in dialog.mdx, to attach a window to a dialog. I can't figure out how to work it though. Please help. I have this:

Code:
on 1:dialog:calcs2:init:0:{
  dll mdx.dll SetMircVersion $version 
  dll mdx.dll MarkDialog $dname
  dll mdx.dll SetControlMDX $dname 1 Window > dialog.mdx
  did -a calcs2 2 grab $window(@RuneScape).hwnd @RuneScape
}

And my button:
Code:
  button "Button", 2, -1 0 269 204

Last edited by phrozenfire; 06/04/03 11:55 PM.