mIRC Home    About    Download    Register    News    Help

Print Thread
MDX @window Imbedding #104169 30/11/04 07:00 AM
Joined: Jun 2004
Posts: 87
B
biggem001 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
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?

Re: MDX @window Imbedding #104170 30/11/04 08:01 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: MDX @window Imbedding #104171 30/11/04 03:40 PM
Joined: May 2003
Posts: 18
K
kinnu Offline
Pikka bird
Offline
Pikka bird
K
Joined: May 2003
Posts: 18
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.

Last edited by kinnu; 30/11/04 03:42 PM.