mIRC Homepage
Posted By: ATMA weird stuff - 13/11/03 11:25 PM
ok i have this and i have it dock and every thing now what i need it to do right is change the color of the background of the dialog but it apears its not working right for me -_- any idea
[code]
on *:dialog:atmamenu:init:*: {
dll $mdx(mdx.dll) MarkDialog $dname
dll $mdx(mdx.dll) SetMircVersion $version
dll $mdx(mdx.dll) SetBorderStyle 12,13,14,16,17,18 clientedge
dll $mdx(mdx.dll) SetControlMDX $dname 1 ProgressBar smooth > $mdxe(ctl_gen.mdx)
dll $mdx(mdx.dll) SetColor atmamenu 2 background $rgb(1,1,1)
dll $rbar(rebar.dll) Dock $dialog($dname).hwnd > top
}
alias rbar { return $+(",$mircdirdll\rebar\,$1,") }
alias mdx { return $+(",$mircdirdll\mdx\,$1,") }
alias mdxe { return $+(,$mircdirdll\mdx\,$1,) }
[code]
Posted By: Online Re: weird stuff - 13/11/03 11:32 PM
Did you see this post?
And please fix the [[/b]code] tags.
Posted By: Canario Re: weird stuff - 14/11/03 01:13 AM
dll $mdx(mdx.dll) SetDialog $dname bgcolor $rgb(16,0,109) this change the background color of all dialog.
Posted By: ATMA Re: weird stuff - 14/11/03 01:16 AM
how would i do the border of like an edit box? =/

dll $mdx SetColor $dname 3 border $rgb(255,255,255)

^^--- does not work
Posted By: ATMA Re: weird stuff - 14/11/03 01:52 AM
a new problem:
its not chaning the stuff for the botton =/

[code]
dialog atmamenu {
title atmamenu
size -1 -1 500 0
option dbu
icon 1, 1 4 11 8, $icondir(1.bmp), noborder
text "lagbar", 2, 15 4 50 8,
edit "Google Search..", 3, 68 4 90 8,
button "Search", 4, 159 4 40 8, ok
}
on *:dialog:atmamenu:init:*: {
dll $mdx MarkDialog $dname
dll $mdx SetMircVersion $version
dll $mdx SetControlMDX $dname 2 ProgressBar smooth > $mdxe(ctl_gen.mdx)

dll $mdx SetDialog $dname bgcolor $rgb(0,0,0)
dll $mdx SetColor $dname textbg $rgb(0,0,0)
dll $mdx SetColor $dname text $rgb(255,255,255)

dll $mdx SetColor $dname 3 background $rgb(0,0,0)
dll $mdx SetColor $dname 3 textbg $rgb(0,0,0)
dll $mdx SetColor $dname 3 text $rgb(255,255,255)

dll $mdx SetColor $dname 4 background $rgb(1,1,1)
dll $mdx SetColor $dname 4 textbg $rgb(50,1,1)
dll $mdx SetColor $dname 4 text $rgb(255,255,255)

dll $rbar Dock $dialog($dname).hwnd > top
}
on *:dialog:atmamenu:sclick:1: {
dialog -c $dname
dll $rbar UnDock top
}
Posted By: Online Re: weird stuff - 14/11/03 10:06 AM
mdx.hlp says SetColor only works for text, listbox and edit controls. Not for buttons. If you still want it colored, you can use a neat icon instead.

Btw, to close the [[/b]code] tag use [[/b]/code], because if it's not closed properly the page is messed up.
Posted By: ATMA Re: weird stuff - 14/11/03 11:49 AM
mtec89 has done the buttons some how =/

http://www.mtec89.com/mtecscript.jpg

idk how but look at his little bar the buttons are moded by MDX no? and what about the borders for edits i dont have the mdx help files -_-
Posted By: Online Re: weird stuff - 14/11/03 12:06 PM
You can ask him then... and get mdx here.
Posted By: Canario Re: weird stuff - 15/11/03 01:36 AM
dll $mdx SetBorderStyle $dname id clientedge
dll $mdx SetBorderStyle $dname id staticedge
You can do this with edit too. Others controls are windowedge, dlgmodal, dlgframe, border. You can combine two or more controls, like staticedge dlgmodal.
In the dialog you put above, Mtec89 change the dialog font too with SetFont. I recommend you download the mdx help files.
© mIRC Discussion Forums