ImageList.Item optimised compiler bug?

agraham

Expert
Licensed User
Longtime User
B4X:
Sub App_Start
    Form1.Show
    a = "smiley.gif"
    ImageList1.Add(a)
    a = "btnhome.bmp"
    ImageList1.Item(0) = a
    [COLOR="Red"]form1.Image [/COLOR]= ImageList1.Item(0)
End Sub
That works because Form.Image can convert a string filename to a bitmap using GetBitmapFromString, ImageLib.Drawer.DrawImage1 and ImageLibEx.DrawerEx.DrawImage won't so can't use an ImageList containing strings.

EDIT: Corrected the DrawIMage references.
 
Top