Guest Guidosoft Posted February 26, 2005 Posted February 26, 2005 Do you know how to Delete ALL tree/listview items at once? I mean really DELETE all the items. Like, kill their handles. All at once.
Lazycat Posted February 26, 2005 Posted February 26, 2005 This will kill all elements of listview: GUICtrlSendMsg($hList , 0x1000 + 9 , 0 , 0) And this kill all treeview items: $TVI_ROOT = -0x10000 GUICtrlSendMsg($hTree , 0x1100 + 1 , 0 , $TVI_ROOT) All at once. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
Holger Posted February 26, 2005 Posted February 26, 2005 (edited) Maybe good idea, but FORGET THIS with a GUI-treeview/listview-control!!! Fact is that all items could be deleted with this messages but the item-variables and so the internal saved values/states/etc. in your script will be NOT deleted!!! Edited February 26, 2005 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
kwlayman Posted February 26, 2005 Posted February 26, 2005 How do you know what messages are OK to use and which are not?
Holger Posted February 26, 2005 Posted February 26, 2005 I know it's a little bit work but the only possibility is to use GUICtrlDelete($itemid)! Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Lazycat Posted February 27, 2005 Posted February 27, 2005 Maybe good idea, but FORGET THIS with a GUI-treeview/listview-control!!!Fact is that all items could be deleted with this messages but the item-variables and so the internal saved values/states/etc. in your script will be NOT deleted!!!Thanks for the info, I'm suppose that treeview/listview items should be linked with some variables, that allow easily interact with them from Autoit, but I was not sure... So probably best way at the moment to fast delete all items - have their id's in one array... Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now