Hi there folks!
I want to be able to remove images from an Listview and Imagelist gadget i thought it would be as easy as remove items from the combobox gadget and so on but no.
So now i am turning to you guys here at the community, here are the code for image removal i made.
`CLEAN OUT OLD PREVIEW IMAGES
if getListViewItemCount( ObjectSelectionPreviews ) > 0
while itemCount( ObjectSelectionPreviews ) > 0
removeListViewItem ObjectSelectionPreviews, 0
removeImagelistItem imageList, 0
endwhile
endif
Hope someone have time
Over and out
[EDIT]
Well meantime I came up with an rather mabey unusual change, I deleted both gadgets and remade em every time instead like this:
`CLEAN OUT OLD PREVIEW IMAGES
if imageList <> 0
deleteImagelist imageList
result = deleteGadget( ObjectSelectionPreviews )
imageList = 0
ObjectSelectionPreviews = 0
ObjectSelectionPreviews=createListView(2,2,450,480,PanelObjectSelection)
imageList=createImageList(64,64)
setListViewImageList ObjectSelectionPreviews,imageList
endif
You never fail, only make mistakes.