|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
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]
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
Did you see this post? And please fix the [[/b]code] tags.
|
|
|
|
Joined: Nov 2003
Posts: 67
Babel fish
|
Babel fish
Joined: Nov 2003
Posts: 67 |
dll $mdx(mdx.dll) SetDialog $dname bgcolor $rgb(16,0,109) this change the background color of all dialog.
irc.universochat.net #escripting
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
how would i do the border of like an edit box? =/
dll $mdx SetColor $dname 3 border $rgb(255,255,255)
^^--- does not work
Last edited by ATMA; 14/11/03 01:21 AM.
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
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 }
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
mtec89 has done the buttons some how =/ http://www.mtec89.com/mtecscript.jpgidk 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 -_-
|
|
|
|
Joined: Dec 2002
Posts: 1,922
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,922 |
You can ask him then... and get mdx here.
|
|
|
|
Joined: Nov 2003
Posts: 67
Babel fish
|
Babel fish
Joined: Nov 2003
Posts: 67 |
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.
irc.universochat.net #escripting
|
|
|
|
|