#17 Putting png images in a toolbar

closed
Riaan Booysen
None
5
2003-07-30
2003-07-25
No

Hi,

When I put a png image in a button (tool) of a toolbar
and I start the application, I receive the the error :
"No image handler for type 15 defined".

I don't know how to correct that.

Thanks

Discussion

  • Riaan Booysen
    Riaan Booysen
    2003-07-30

    • assigned_to: nobody --> riaan
    • status: open --> closed
     
  • Riaan Booysen
    Riaan Booysen
    2003-07-30

    Logged In: YES
    user_id=438

    Hello,

    When an applicaion uses PNG images, somewhere you have to
    add:

    wxInitAllImageHandlers()

    somewhere in your code.

    Boa adds it to the wxApp module and also when you choose:
    Edit->Add simple app

    Cheers,
    Riaan.