|
Joined: Feb 2005
Posts: 74
Babel fish
|
OP
Babel fish
Joined: Feb 2005
Posts: 74 |
What i need to do to make a edit box text with mirc colors?? There's the DIALOG:
dialog reklama {
title "BamBooCha v1.0 reklaamas:"
size -1 -1 625 167
option pixels
edit "", 1, 96 16 418 20, read center %reklama1
text "Reklama Nr.1:", 2, 4 18 92 17, center
button "Reklamet", 3, 536 13 65 25, flat multi
text "Reklama Nr.2:", 4, 3 45 92 17, center
edit "", 5, 96 43 418 20, read center %reklama2
button "Reklamet", 6, 536 41 65 25, flat multi
text "Reklama Nr.3:", 7, 3 71 92 17, center
edit "", 8, 96 70 418 20, read center
button "Reklamet", 9, 536 69 65 25, flat multi
text "Reklama Nr.4:", 10, 3 98 92 17, center
edit "", 11, 96 97 418 20, read center
button "Reklamet", 12, 536 96 65 25, flat multi
box "", 14, 13 126 589 34
link "blog.off.lv", 13, 151 138 80 17
text "Sacheko ieksh shito lapu:", 15, 25 138 124 17
button "Iziet", 16, 535 134 65 25, cancel
}
and there is the init
on *:DIALOG:reklama:init:*: {
/did -a reklama 1 need text with colors ;PP
}
[color:red]m[color:blue]IRC[color:green] for EvEr
|
|
|
|
Joined: Mar 2005
Posts: 74
Babel fish
|
Babel fish
Joined: Mar 2005
Posts: 74 |
afaik it's impossible to add colours in dialogs (text wise or background wise) without the use of a .dll
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Here's an example to colourize dialog controlls and defiant is right, you need a DLL. There could be more but the only one I can think of is MDX.dll.
dialog up {
title ""
size -1 -1 57 77
option dbu
edit "Name", 2, 2 2 53 12, autohs
edit "D.O.B", 3, 2 19 53 12, autohs
edit "Gender", 4, 2 38 53 12, autohs
button "r", 1, 9 58 37 15
}
On *:Dialog:up:init:0: {
dll MDX\mdx.dll SetMircVersion $version
dll MDX\mdx.dll MarkDialog $dname
dll MDX\mdx.dll SetBorderStyle 1,2,3,4 clientedge dlgmodal
dll MDX\mdx.dll SetColor up 2,3,4 background $rgb(255,0,0)
dll MDX\mdx.dll SetColor up 2,3,4 textbg $rgb(255,0,0)
dll MDX\mdx.dll SetColor up 1 background $rgb(255,0,0)
dll MDX\mdx.dll SetFont $dname 1, -10 400 Webdings
dll MDX\mdx.dll SetColor 2,3,4 text $rgb(0,0,255)
dll MDX\mdx.dll SetDialog $dname bgcolor $rgb(0,0,0)
did -f $dname 1
}
You need to make sure when extracting files you create a directory in your mIRC folder called MDX (or whatever you want) just make sure you change the path in your code too. This example changes your text colour to blue, the actual control background to red, and the dialog background itself to black. -Andy
|
|
|
|
|