mIRC Home    About    Download    Register    News    Help

Print Thread
#128261 23/08/05 01:04 AM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
How can I get the "icon" to work?
I put in..

icon myicon.bmp, 0

i tried other numbers for index, but nothing works. What does the index do anyways?

#128262 23/08/05 01:35 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
icon id, x y w h, filename, index, style (noborder top left bottom right)



So, you need something like:

icon 1,10 10 50 50,myimage.gif,noborder

Index is used for a .ico file that includes many images within it. It lets you select which image in the file to display. Note also that not all image types can be displayed in a dialog.


Invision Support
#Invision on irc.irchighway.net
#128263 23/08/05 03:44 PM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
Riamus2,

i think that you may have confused him a bit.. by including the word "icon" in your description, which is correct. but, however for what the origanl poster was asking i believe that it should be explained that where it says "icon" in the help file what it actually means the name of the icon file itself.. example: path/to/test.ico .
test.ico being the icon being used..

i know you understand that, but for newbies thats VERY confusing...

(i had lots of trouble with that myself) grin

so, anyways i'd thought i'd mention it for anyone who reads this post..

#128264 23/08/05 04:12 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ok, YOU are confusing ME. laugh

You don't replace "icon" in what I put above with a filename. You also don't need to use a .ico file. I'm not sure what you're getting at. smile


Invision Support
#Invision on irc.irchighway.net
#128265 23/08/05 04:44 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the confusing thing with this is there are two places in the dialog where the term "icon" are used

1)
dialog [-l] name {

title "text"
icon filename, index
size x y w h
option type (dbu, pixels, notheme)

this first one allows the icon of the dialog itself to be changed from the mIRC default to one of your own choosing. Note the location in the dialog table and the "index" switch

2)
icon id, x y w h, filename, index, style (noborder top left bottom right)

this allows you to place images (ico, bmp, jpg) in the client area of the dialog.

sample
Code:
dialog icon {
  title "Icon Test"
  icon "C:\windows\system32\calc.exe", index
  size -1 -1 100 50
  option dbu
  icon 1, 20 20 32 32, "C:\windows\system32\calc.exe", noborder
}


note I used " around the path\filename though I did not need to as there were no spaces in the path, had I chosen an exe as the icon source and it was say in the c:\program files\ folder the " would be needed

#128266 23/08/05 05:50 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ah! I forgot about using icon at the top. I never end up putting anything there. laugh


Invision Support
#Invision on irc.irchighway.net
#128267 24/08/05 04:07 AM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
i'm apologise riamus2, perhaps i should've given a example like mikechat has... i just assumed you would have known what i meant, oops. blush

(thats what i get for assuming..)

all this confusion aaaaaaaaaahhhhhhhhhhh! smirk

#128268 24/08/05 12:48 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
No problem. I should have remembered it. laugh


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard