Page 1 of 1

Bug in TImageList

Posted: Sat Mar 10, 2007 3:58 am
by AlexSchaft
Hi,

I don't think that oIcon should be in inverted comma's :)

Alex

METHOD AddIcon( oIcon ) CLASS TImageList

local oIco

if ValType( oIcon ) == "C"
if File( "oIcon" )
DEFINE ICON oIco FILENAME oIcon
else
DEFINE ICON oIco RESOURCE oIcon
endif
else
oIco = oIcon
endif

return ILAddIcon( ::hImageList, oIco:hIcon )

Posted: Sat Mar 10, 2007 8:33 am
by Antonio Linares
Alex,

Fixed, thanks :-)