wxImageList.GetIcon() not returning anything

BlitzMax Forums/Brucey's Modules/wxImageList.GetIcon() not returning anything

Vilu(Posted 2008) [#1]
The below example demonstrates that wxImageList.GetIcon() returns NULL:



The example works fine when loading the icon directly using
Icon.LoadFile("icon.xpm", wxBITMAP_TYPE_XPM)



Brucey(Posted 2008) [#2]
http://code.google.com/p/wxmax/wiki/ToDo :-)

I'll have a look at finishing off wxImageList.


Vilu(Posted 2008) [#3]
Ah, that figures!

Next time I'd better check the ToDo list before posting another "bug report" ;)

I think I can work myself around the issue by using an array of bitmaps instead and converting them to icons on-the-fly.

Thank you for your hard work, though! =)


Brucey(Posted 2008) [#4]
Done.

Revision 388 :-)


Vilu(Posted 2008) [#5]
Fine, but could you please be a little faster next time? ;)

Incredible. I just wired you a little something via Paypal.

Heck, I'm using four of your modules in my game project, not to mention the various Blitz stuff I'm doing at work so this is the least I could do. =)


Brucey(Posted 2008) [#6]
but could you please be a little faster next time?

Apologies... I would have committed it sooner, but I was distracted by dinner ;-)

Thanks very much!