Txs for the tip on Windows assuming that if there is an image list then we must want to put images on the line items. This also means that we could avoid using an image list and get the image from some place else, right?
Also, I still wonder about the use of InsertStringItem versus InsertImageStringItem, as per code and comments below. Could you please clarify/give pointer on the best approach?
for r in range(200):
# I can't get this! If I use InsertStringItem, I get an image
#index = self.list.InsertStringItem(sys.maxint, "first col!")
# If I use InsertImageStringItem, I manage not to get an image
index = self.list.InsertImageStringItem(sys.maxint, "%3d - first line!" % r, -1)
# Although the space for the image appears at the begining of each line
self.list.SetStringItem(index, 1, 'second col!')
self.list.SetStringItem(index, 2, 'third column!')
# just trying out SetColumnImage()
self.list.SetColumnImage(1,0)
Txs,
Miguel
···
_______________________________________________________________________________________
100% GRATIS - AMEN.PT - Dominio .be - Ferramenta de criacao de sites, alojamento, anti-virus/spam...
Saber mais em http://www.iol.pt/correio/rodape.php?dst=0512201