I'm unable to create a dialog with a custom icon. The example in the ooDialog documentation, section 7.9.3 addIcon, doesn't seem to work either. I've verified that addIcon returns 0.
ooRexx 4.1.2 (32-bit)
Please attach a small program that shows the problem. Thanks.
You seem to have CSS turned off.
Please don't fill out this field.
It works fine for me, both in several of my programs and the program in the doc you referred to.
The most likely cause of the problem for you is that you are not using an actual icon, but some other type of image.
In the future, please attach a small working program that demonstrates the bug.
1.) A developer is more likely to take a look at your bug, if she can just execute a program and see that it doesn't work.
2.) If you have an error in your usage, the developer can point it out to you.
3.) If you have discovered a bug that the developer's testing didn't find, it is likely that he will just run the same test he did before and won't see the bug.
Here is a complete working example.
Thanks for the comments. I think I've learned that an icon is NOT just a small bmp image but has some other properties that I need to understand. I'm new to windows programming and am going through a huge learning curve at the moment. Sorry for taking up valuable time with this.
Yes, that's correct, an icon image is not the same as any small bitmap file. In Windows, in general, icons will always have an .ico extension. There is nothing to prevent someone from renaming an icon file to something with a .bmp extension, but normally no one would do that.
I'm not an expert on image formats, but an icon file has some differences in the internal header from that of a bitmap.
Fyi, I looked up Icon in wikipedia and found that GIMP (which I have installed) supports the icon format. So I just loaded the .ico file into GIMP and saved it again, overwriting the old version, and things are now working as they should. :)
Sign up for the SourceForge newsletter: