|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
If i want to make a dialog where ppl can change skins, how would i creat a thing like this ? i have been looking around at a fev sites.. but they dont have anyting that explain how its done, only addons that have this feture, i want to creat a dialog and that should be skinable as winamp.. hope u understand what i mean
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
mIRC's dialog implementation makes skinning hard, even with a dll, as it doesn't support owner-drawn controls (I won't explain what owner-drawn means, but office XP menu's are a good example of an owner-drawn control), if you just want to change the location, background colour, text, border style, etc, of controls, mdx will suffice. To be more specific, you can use mdx's SetDialog, SetColor, SetBorderStyle and MoveControl functions. It might be a better idea to use picture windows, as they're much more suitable, it won't be an easy task though, here's a screenshot of a skinnable picture window mp3 player called argh-amp: -1.png]http://www.mircscripts.org/downloads/screenshots/aamps[04-16]-1.png
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
i cant get that "button" movement with mdx.dll .. i know it can be done, but i guess im not good enuff have been playing with that a bit befor.. but i cant get it to work.. so hmm, any more dokuments about that ? and no, i want it made in dialog not in picture windows
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Well I guess it's your choice, but the borders on controls will make it look ugly if you change the colour of controls.
Anyway, you can use: //dll mdx.dll MoveControl dname id x y w h
Eg: dll mdx.dll MoveControl mp3 1 $readini(skin.ini,1,x) $readini(skin.ini,1,y) $readini(skin.ini,1,w) $readini(skin.ini,1,h)
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
whats the name of the file on mircscripts.org that have mdx DLL ?? i cant find the help file on my comp so guess i have download it again :tongue:
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
It's not on mircscripts.org, it's here. Edit: fixed link
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Yeah sorry it's a dns error, you need to use www., not http://
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
Any way you can use mdx.dll to change the color of a text in a button ??
alias dllmdx return dll " $+ $mircdirdll/mdx.dll $+ "
on *:dialog:testing:*:*: {
if ($devent == init) {
$dllmdx MarkDialog $dname
$dllmdx SetMircVersion $version testing
}
if ($devent == sclick) {
if ($did == ID) { $dllmdx SetColor 2 text 255 | did -a testing ID text }
}
}
dont work.. :tongue:
Last edited by sparta; 09/10/04 09:09 PM.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Yep, mdx doesn't support the colouring of buttons.
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
OP
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
|