I am trying to use an icon within the dialog window itself, not in the title bar.

I have set the path to the icon to a variable using $findfile.

Code:
on *:load: { set -n %renepic $findfile(C:\,renemp3ic0n.bmp,1)


The variable stores the path correctly.

Code:
dialog lilmp3 {
  title "reneMPĀ³"
  size -1 -1 370 340
  option pixels
  icon 1, 312 13 41 48,%renepic
  ......


//echo %renepic yeilds: C:\3515\renemp3ic0n.bmp (which is the correct location of the .bmp)

Upon first execution of the dialog, it displays everything properly.

The problem comes when the dialog is closed , and on next start.

* /dialog: 'lilmp3' error loading icon '0 C:\3515\renemp3ic0n.bmp'

I am not sure what/where/why the area in red from the error message is there, but it seems to be what is causing my problem:

* /dialog: 'lilmp3' error loading icon '0 C:\3515\renemp3ic0n.bmp'

If I merely use the path itself in the dialog table it works perfectly, only when I introduced the variable did I encounter any problems. I want to search for the icon itself as I dont know the filepath where anyone whom I may give this to will put it.

My short term remedy is to now just search for the icon eveytime the dialog is executed, but dont really think that should be necessary once it has been set.