Page 1 of 1

Re: ExplorerListGadget

Posted: Wed Aug 06, 2003 11:13 am
by Fangbeast
Does anyone know how to remove a line from ExplorerListGadget? RemoveGadgetItem doesn't seem to work, even though technically it is a ListIconGadget

Posted: Tue Aug 19, 2003 10:43 pm
by freak
This should work (can't test right now though)

Code: Select all

SendMessage_( GadgetID(#ExplorerList), #LVM_DELETEITEM, Item, 0)
(where 'Item' is the item to remove)

Also this one will cause a refresh of the Gadget:

Code: Select all

SetGadgetText(#ExplorerList, GetGadgetText(#ExplorerList))
However, although this scans the whole directory again, it doesn't seem
to imediately display a file deleete on some systems (due to some disk
caching thingy maybe?)

Timo

Great stuff!!

Posted: Wed Aug 20, 2003 8:36 am
by Fangbeast
Thanks Freak, worked wonderfully, nice and fast too. I worked out the refresh already a few weeks ago but this one got me lost. API's usually do:):)