mIRC Home    About    Download    Register    News    Help

Print Thread
#100073 09/10/04 07:25 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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 crazy


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#100074 09/10/04 07:41 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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
#100075 09/10/04 07:58 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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 wink 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 smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#100076 09/10/04 08:04 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
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
#100077 09/10/04 08:29 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
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,.) }
#100078 09/10/04 08:33 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
It's not on mircscripts.org, it's here.

Edit: fixed link


New username: hixxy
#100079 09/10/04 08:35 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
cant access that page


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#100080 09/10/04 08:41 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Yeah sorry it's a dns error, you need to use www., not http://


New username: hixxy
#100081 09/10/04 09:05 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Any way you can use mdx.dll to change the color of a text in a button ??
Code:
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,.) }
#100082 09/10/04 09:18 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Yep, mdx doesn't support the colouring of buttons.


New username: hixxy
#100083 09/10/04 09:37 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
ok thnx.. :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard