| View previous topic :: View next topic |
| Author |
Message |
noclue Guest
|
Posted: Thu May 14, 2009 12:17 am Post subject: using pix in dll |
|
|
i put a bunch of bmp's into a dll file using xnresourceeditor so i can use em in a program i want to try and make
i downloaded a dll then put my pix in after deleting what was in there cause i didn't want to have a bunch of small pix
but now i can't get it to work
this is the line-
Gui, Add, Picture, x30 y50 Icon1, %a_ScriptDir%\ResPix\EmeraldGel.dll
i don't have much to the script yet as i want to get it to work by pieces so all i got after this is the 'gui, show'
the pic doesn't show up at all and if i put the 'w' and 'h' in that line it just has like a text box with the folder info
i'll keep this page up in my browser to see if anyone can help me with this
lotta thanks |
|
| Back to top |
|
 |
noclue Guest
|
Posted: Fri May 15, 2009 4:04 pm Post subject: |
|
|
| can't anyone here help me with this please? |
|
| Back to top |
|
 |
badmojo
Joined: 11 Nov 2005 Posts: 202
|
Posted: Fri May 15, 2009 6:12 pm Post subject: |
|
|
if you want to use the 1st icon in the DLL then Icon1 isn't necessary but do try using 'AltSubmit'.
| Code: | | Gui, Add, Picture, AltSubmit Icon1, %A_ScriptDir%\ResPix\EmeraldGel.dll |
|
|
| Back to top |
|
 |
noclue Guest
|
Posted: Fri May 15, 2009 11:47 pm Post subject: |
|
|
just tried the altsubmit just as you said, badmojo, with no luck and i would need to be able to use the other pix in my dll too so that is why i used the icon1
i can't use an icon library cuz the pix are different sizes and most of them are bigger than icons are supposed to be, it didn't seem to work right for any of the pix when i tried that anyway
is there any other way of putting them all together in one file or should i just keep them all separate?
i want to make this so i can add different styles of pix as i think of them and would really prefer the dll method but will try just about any other method if it works
TIA! |
|
| Back to top |
|
 |
badmojo
Joined: 11 Nov 2005 Posts: 202
|
Posted: Sat May 16, 2009 2:06 am Post subject: |
|
|
| the problem might be in the dll. use Nirsoft's IconsExtract to extract one of the icons and try again to see if the icon appears. |
|
| Back to top |
|
 |
noclue Guest
|
Posted: Sat May 16, 2009 3:24 pm Post subject: |
|
|
you were right, there is a problem with my dll.
i thought i just had to remove what was in one and put in what i want.
any idea how i can make a dll for my pix? |
|
| Back to top |
|
 |
|