#1106 addIcon not working

None
closed
ooDialog (58)
none
1
2012-08-23
2012-08-23
No

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)
Windows 7

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2012-08-23

    Please attach a small program that shows the problem. Thanks.

     
  • Mark Miesfeld

    Mark Miesfeld - 2012-08-23

    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.

     
  • Mark Miesfeld

    Mark Miesfeld - 2012-08-23
    • labels: --> ooDialog
    • assigned_to: Mark Miesfeld
     
  • Mark Miesfeld

    Mark Miesfeld - 2012-08-23

    Here is a complete working example.

    • status: open --> invalid
     
    Attachments
  • Staffan Tylen

    Staffan Tylen - 2012-08-23

    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.

     
  • Mark Miesfeld

    Mark Miesfeld - 2012-08-23

    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.

    • status: invalid --> closed
     
  • Staffan Tylen

    Staffan Tylen - 2012-08-23

    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. :)
    Thanks again.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks