On Sun, Aug 10, 2008 at 1:19 AM, Mattia Barbon <[EMAIL PROTECTED]> wrote:
> Gabor Szabo wrote:
>
>  Hi,
>
>> The following function (based on code in the wxDemo) is used in Padre
>> to load the
>> xpm files for the toolbar. This works well on Ubuntu but gives
>> "no image handler for type 9 defined" error on Windows
>> using wx 0.84,  wxwidgets 2.8.7  on strawberry perl 5.10
>>
>> any idea why and how to solve it would be appreciated.
>
>  You need to ensure all necessary image handlers are loaded;
> some are loaded by default (BMP under Windows, XPM under *nix,
> maybe some others).  The easiest way is to call Wx::InitAllImageHandlers,
> otherwise you can add the handlers
> one by one (see Available image handlers in wxImage documentation).
>
> HTH
> Mattia
>
> P.S.: it is a but more complicate than that: there are also some
>      (native) bitmap handlers that work directly on bitmaps, but
>      the bitmap loading code also uses wxImage as a generic way
>      to load bitmaps


Thanks.

Calling Wx::InitAllImageHandlers() removes the error message
but the icons still don't show up on the toolbar.

Any cure for that?

Gabor

Reply via email to