GaryFrost Posted December 6, 2006 Posted December 6, 2006 This is a work in progress, hoping to get it completed and working 100% to get the functions into the Help file eventually.Have Image list working with the Header of the ListViewHaving problems with Image list and ListView ItemAppears to be a problem also if GUICtrlSetImage is used on a listview item when header images are used,this might be my fault (still working on this)Appears to be a refresh problem if set the width of the listview small enough to cause horizontal scrollbar to appear, use scrollbar and header image(s) get hosed.http://www.autoitscript.com/fileman/users/gafrost/projects/Includes/Memory.au3http://www.autoitscript.com/fileman/users/gafrost/projects/Includes/blue.bmphttp://www.autoitscript.com/fileman/users/gafrost/projects/Includes/green.bmphttp://www.autoitscript.com/fileman/users/gafrost/projects/Includes/TestListViewImages.au3Input/help appreciated.Paul has helped me get this going so far, thought I would put it out in the support section and see what happens.Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
GaryFrost Posted December 7, 2006 Author Posted December 7, 2006 (edited) *bump*Clarification:I can create an image list and hook it to the header of the listview.Problem 1:Can't hook Imagelist to the listview itself.Problem 2:Problem 1:If Image List is used on headerand GuiCtrlSetImage is used on Item messes up images in headerProblem 3:Problem 2:If listview is horizontally scrollable then 1st image in header don't redraw properly.Problem 3:Hooking Image List to ListView seems to mess up Mask set on Header Images. Edited December 8, 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.
Holger Posted December 8, 2006 Posted December 8, 2006 1.) For Listview "Report"-view you can only use small images ->: ... Func _TestListViewImages() ... $h_images2 = _GUICtrlListViewCreateImageList($image_width, $image_height, 0x0021, 0, 4, $LVSIL_SMALL) ... _GuiCtrlListViewSetImageList($h_LV, $h_images2, $LVSIL_SMALL) ... It seems to be some 'overlapping' of the image lists. So if you change an icon for a listviewitem the same change happens to the imagelist of the header. Maybe this is something strange like the fact that the first created imagelist-icon is used for all items... 3.) the refreshing thing is maybe similar to the strange effects we 'had' some versions before with column resizing - maybe you remember. I just then implemented a refresh of the header. However, if I disable this internal refresh the refreshing problem still exists. So no more idea at the moment...will take a look again later... Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
GaryFrost Posted December 8, 2006 Author Posted December 8, 2006 1.) For Listview "Report"-view you can only use small images ->: ... Func _TestListViewImages() ... $h_images2 = _GUICtrlListViewCreateImageList($image_width, $image_height, 0x0021, 0, 4, $LVSIL_SMALL) ... _GuiCtrlListViewSetImageList($h_LV, $h_images2, $LVSIL_SMALL) ... It seems to be some 'overlapping' of the image lists. So if you change an icon for a listviewitem the same change happens to the imagelist of the header. Maybe this is something strange like the fact that the first created imagelist-icon is used for all items... 3.) the refreshing thing is maybe similar to the strange effects we 'had' some versions before with column resizing - maybe you remember. I just then implemented a refresh of the header. However, if I disable this internal refresh the refreshing problem still exists. So no more idea at the moment...will take a look again later... Once again thanks for your time/info Holger. Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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