mIRC Homepage
Posted By: biggem001 MDX @window Imbedding - 30/11/04 07:00 AM
ok here is my dialog

dialog R {
title "R"
size -1 -1 188 104
option dbu
edit "", 1, 1 5 184 35, multi
button "", 2, 72 63 37 12
}
on *:dialog:R:init:0: {
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname

window -ah @preview
did -a $dname 2 grab $window(@preview).hwnd @preview
}
... wat do i do next?
it doesnt put the @window in just puts the window(@preview).hwnd @preview on the button text
any1?
Posted By: sparta Re: MDX @window Imbedding - 30/11/04 08:01 AM
this is from the help file:

h = hide switchbar window button (window only appears in Window list)

so remove the -h switch and see what happens.

window -ah @preview
Posted By: kinnu Re: MDX @window Imbedding - 30/11/04 03:40 PM
You forgot to do the SetControlMDX-thing. I don't remember the exact syntax right now, consult MDX help/examples for that.

Edit: The -h flag is allowed for embedded windows - no point littering the switchbar.
© mIRC Discussion Forums