mIRC Home    About    Download    Register    News    Help

Print Thread
#140336 24/01/06 07:25 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
help file says:
icon filename, index

my dialog:

dialog dpp {
title "Private Protection"
icon $mircdirsystem\domin.icl 7
size -1 -1 128 170
option dbu
...
}

and i still dont get icon on dialog
why so?


IceCapped
#140337 24/01/06 07:33 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
icon filename, index

you left off the "index" switch

#140338 24/01/06 07:35 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
what do you mean by INDEX?

isnt index icon number in ICL ?


IceCapped
#140339 24/01/06 07:38 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
icon $mircdirsystem\domin.icl 7, 5 5 290 35

where you want the icon to be shown..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#140340 24/01/06 07:40 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
fixed it laugh

btw, sorry for low desc
i ment icon for left corner (like any window has)
but i forgot to put comma behind icl path :tongue:

ah well..

thanks both =)


IceCapped
#140341 24/01/06 07:41 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the index switch tells mirc where to show it, in this case in the dialog frame to the left of the title.
icon is also used to show images in the body(client area) of a dialog, and would not have the "index" switch but the location and size parameters.

#140342 24/01/06 10:48 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
but i didnt gave any index
i just gave number of icon in icl file

unless mirc automatic determines
if user didnt gave any coordinates
it places icon in corner as DIALOG icon


IceCapped
#140343 24/01/06 11:00 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
ok, well good it works, but remember shortcuts dont always work on different versions

Code:
alias icontest { dialog -m icon icon }
dialog icon {
  title "Icon Test"
  size -1 -1 100 100
  icon c:\windows\UI\DESKTOP.ICO , index
  option dbu
  icon 800, 25 10 30 30, c:\windows\UI\DESKTOP.ICO
}

on 6.16 removeing the "index" fails.
if I remember you are not using 6.16

#140344 24/01/06 11:10 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i cant test ur dialog since i got error on non existant icon...


IceCapped

Link Copied to Clipboard