mIRC Home    About    Download    Register    News    Help

Print Thread
#170795 14/02/07 07:39 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
can this be done? (to insert image into dialog)
if yes, what extensions and how ? :P

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
You can use the 'icon' dialog control:

Code:
icon <id>, <x> <y> <width> <height>, <index of image in file> <path to file>

Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
well thats the problem smirk
it wont load the image i get errors

this is icon control settings:
icon 1, 0 0 187 64, 0 $mircdirsystem\image.bmp

(i have BMP GIF and JPG, none wont work)

errors are:

* /dialog: 'dialog_name'error loading icon '0 D:\mirc\system\image.bmp'

same for jpg ang gif


Last edited by raZOR; 14/02/07 07:53 PM.
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Try this:

Code:
icon 1, 0 0 187 64, 0, $qt($mircdirsystem\image.bmp)

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
The filename should be before the index. In fact the index can be omitted if it doesn't make sense for the file type.
Originally Posted By: mIRC Help
icon id, x y w h, filename, index, style

Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
heh thanks both smile
seems that index supposed be last indeed :P

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
*makes mental note to check help file rather than guess syntax in future*


Link Copied to Clipboard