|
Joined: Aug 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Aug 2003
Posts: 7 |
i have dialog
dialog away {
title "Away System"
size -1 -1 115 58
option dbu
box "", 1, 0 -3 118 73
text "Nickname:", 2, 5 8 25 6
edit %away.nick, 3, 35 6 79 10
text "Reason:", 4, 5 25 20 6
edit %away.reason, 5, 35 23 79 10, autohs
box "", 6, 8 35 103 16
check "", 7, 12 41 7 7
text "On", 8, 21 41 7 6
text "Away message every 20 mins", 9, 38 41 70 7
button "Set Away", 10, 4 55 37 12
button "Set Back", 11, 41 55 37 12
button "Cancel", 12, 78 55 37 12, ok
}
on *:dialog:away:init:0: {
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll $mdx SetDialog $dname style
dll $mdx SetDialog $dname bgcolor $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 textbg $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 text $rgb(255,255,255)
}
i want to replace default color with black and on text "Away message every 20 mins", 9, 38 41 70 7 it's still default arround it, if i make width or height smaller for just 1 than it's black but i don't see whole text so i was wondering if i could use commons like 6.8 got width or height? hope u understand me
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
You have to set the background color, you're only setting the text background color, which is only the color which appears in the background of the text, like the hole of the R, A, etc.
dll $mdx SetColor $dname 2,4,8,9 [color:blue]bgcolor[/color] $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 textbg $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 text $rgb(255,255,255)
You may need to change the operator used for bgcolor, I haven't used MDX in awhile and I"ve forgotten whether it was background, bg, bgcolor...
- Jason
|
|
|
|
Joined: Aug 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Aug 2003
Posts: 7 |
well now i have
on *:dialog:away:init:0: {
dll $mdx SetMircVersion $version
dll $mdx MarkDialog $dname
dll $mdx SetDialog $dname style
dll $mdx SetDialog $dname bgcolor $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 bgcolor $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 textbg $rgb(0,0,0)
dll $mdx SetColor $dname 2,4,8,9 text $rgb(255,255,255)
}
but it's still same
|
|
|
|
Joined: Jul 2003
Posts: 27
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 27 |
well had to modify some of the specs on your dialog but got it to work i think how ya want...hope this is what you were after....a black dialog correct?...but for some reason the "away msg every 20mins" background wont fully turn black so i got it as close as i could but theres a line underneath it ...like its underlined...you could always reduce the height but will cut off the bottom part of the lettering...i dont know why its doing this offhand...havnt used mdx in awhile code: dialog away { title "Away System" size -1 -1 115 58 option dbu box "", 1, 0 -3 118 73 text "Nickname:", 2, 5 8 24 6 edit %away.nick, 3, 35 6 79 10 text "Reason:", 4, 5 25 20 6 edit %away.reason, 5, 35 23 79 10, autohs box "", 6, 8 35 103 16 check "", 7, 12 41 7 7 text "On", 8, 21 41 7 6 text "Away message every 20 mins", 9, 38 41 71 7 button "Set Away", 10, 4 55 37 12 button "Set Back", 11, 41 55 37 12 button "Cancel", 12, 78 55 37 12, ok } on *:dialog:away:init:0: { mdx SetMircVersion $version mdx MarkDialog $dname mdx SetDialog $dname style mdx SetDialog $dname bgcolor $rgb(0,0,0) mdx SetColor $dname 2,4,8,9 text $rgb(255,255,255) mdx SetColor $dname 2,4,8,9 textbg $rgb(0,0,0) } and my mdx alias is: mdx { return $dll($mircdirscript\dlls\mdx.dll,$1,$2-) } just change the path to yours
|
|
|
|
Joined: Aug 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Aug 2003
Posts: 7 |
i tried your dialog and if i'm right u changed just text "Away message every 20 mins", 9, 38 41 71 7 which made that fild even bigger so now there's more space with default color on end
|
|
|
|
Joined: Jul 2003
Posts: 27
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 27 |
well whats your mdx alias cause it works fine for me
|
|
|
|
Joined: Aug 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Aug 2003
Posts: 7 |
ah i already repaired it, it's very simple lol:
dll $mdx SetColor $dname 2,4,8,9 background $rgb(0,0,0)
|
|
|
|
|