GaryFrost Posted December 15, 2006 Share Posted December 15, 2006 (edited) Requires the latest beta 3.2.1.14 or higher.Was just playing around, was a quick and dirty.Some of the code could probably be done differently.This version only supports drag and drop of 1 item at a time.Improvements are welcome.Edit: Updated to so that images states etc... go with the itemFixed: In doing this I think I found a bug in the Listview with it using the default Icon for the new item instead of the one that is associated to it.Edit: Fixed a bug I had when the from index is higher than the to index must delete to item 1stAdded: DragList Image, seems to depend on what image is in the item as to how it shows (weird)Haven't put much error checking in this, just trying to get it to work 100% 1st.Note: if you have problems with the drop of the item, try commenting outThis version also uses image list and subitem imagesUpdated to extract icons from dll, haven't tried it with exes yet, but should work.Fixed: subitem text wasn't always being set as it shouldCombined the 2 Examples into 1 file, fixed some code and added some error checking.The drop of the item seems like it needs some work, I think it has to do with the $x,$yTo Do: Get the checkbox state to follow item if possibleCheckbox state now follows the item. Cleaned up code, removed functions not needed for autoit created listviewAdded error checkingAdded: auto scrolling when dragging (quick and dirty, might be a better way to do this. Note: this causes a repaint problem)To Do: Add multiple drag and dropDragListViewItem.au3Enjoy!!!!Gary Edited May 17, 2007 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 15, 2006 Author Share Posted December 15, 2006 Updated to so that images states etc... go with the item In doing this I think I found a bug in the Listview with it using the default Icon for the new item instead of the one that is associated to it. See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 15, 2006 Author Share Posted December 15, 2006 Fixed a bug I had when the from index is higher than the to index must delete to item 1st See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
quaizywabbit Posted December 16, 2006 Share Posted December 16, 2006 Very nice work, Gary! [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 Very nice work, Gary!Thanks, still needs some work.Images not working correctly and check state not working correctly, maybe more things to fix.Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted December 16, 2006 Share Posted December 16, 2006 Nice Gary... i did note that when you re-size, the status bar remains at the position under the listview thanks for all your hard work ......... Topless.... lol 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 (edited) Nice Gary... i did note that when you re-size, the status bar remains at the position under the listview thanks for all your hard work ......... Topless.... lol 8) Wasn't paying attention much to the statusbar, trying to figure out how to get the drag item working the way I want. add the following, it should fix that: Case $GUI_EVENT_RESIZED _GUICtrlStatusBarResize ($StatusBar1) Gary Edited December 16, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 Added: DragList Image, seems to depend on what image is in the item as to how it shows (weird) See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 Fixed: In doing this I think I found a bug in the Listview with it using the default Icon for the new item instead of the one that is associated to it.To Do: get the checkbox state to follow item if possibleSee 1st post for updated AttachmentGary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ConsultingJoe Posted December 16, 2006 Share Posted December 16, 2006 Fixed: In doing this I think I found a bug in the Listview with it using the default Icon for the new item instead of the one that is associated to it.To Do: get the checkbox state to follow item if possibleSee 1st post for updated AttachmentGaryApparently I cant find the right memory.au3 because I get errors like unknown function "_Sendmessage"can you attach the filethanks Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 Apparently I cant find the right memory.au3 because I get errors like unknown function "_Sendmessage"can you attach the filethanksRequires latest beta 3.2.1.14 at least. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 Added second script: This version also uses image list and subitem images See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Zedna Posted December 16, 2006 Share Posted December 16, 2006 Nice Gary... i did note that when you re-size, the status bar remains at the position under the listview thanks for all your hard work ......... Topless.... lol 8) Absolute resize problem solution: Const $WM_SIZE = 0x05 GUIRegisterMsg($WM_SIZE, "MY_WM_SIZE") Func MY_WM_SIZE() _GuiCtrlStatusBarResize($StatusBar1) Return $GUI_RUNDEFMSG EndFunc See this my post about that Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted December 16, 2006 Share Posted December 16, 2006 Added second script: This version also uses image list and subitem imagesSee 1st post for updated AttachmentGaryTHANKS Gary that's amazing!! First example of using listview subitems images I have seen. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 THANKS Gary that's amazing!! First example of using listview subitems images I have seen.Thanks, figured out some of it by looking at PaulIA's ImageList library, the rest by MSDN and experimenting.Currenty only been able to get .cur .ico and .bmp to work.Went I get time I'll look into using images from dll/exes.Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 16, 2006 Author Share Posted December 16, 2006 DragListView2: Updated to extract icons from dll, haven't tried it with exes yet, but should work. See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 17, 2006 Author Share Posted December 17, 2006 DragListView2: Fixed subitem text wasn't always being set as it should See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 18, 2006 Author Share Posted December 18, 2006 Combined the 2 Examples into 1 file, fixed some code and added some error checking. The drop of the item seems like it needs some work, I think it has to do with the $x,$y See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 18, 2006 Author Share Posted December 18, 2006 Checkbox state now follows the item. See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted December 18, 2006 Author Share Posted December 18, 2006 Cleaned up code, removed functions not needed for autoit created listview Added error checking See 1st post for updated Attachment Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
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