[BUGFIX VERSION] - 6 Apr 24
Fixed: UDF failed if header colours were initialised but not specifically set.
New UDF in the zip below.
--------------------------------------------------------------------------------------
Note: This is a new recoded and expanded version of my earlier UDF of the same name. If you move to this new version there might well be several script-breaking changes, particularly when setting which columns are to be editable. Please read the "Beginner's Guide" and look at the included example scripts to see where things have changed.
--------------------------------------------------------------------------------------
This UDF allows you to do much more with ListView controls (either native or UDF created):
Edit the content with plain text, combos or date-time pickers - and edit the headers too
Move rows within the ListView
Drag rows both within the ListView and to other ListViews in the same GUI (or not as required)
Insert and delete columns and rows
Sort columns by simply clicking the header
Colour individual ListView items and headers
Only select a single cell rather then the entire row
Save and load entire ListViews
For the advanced user: If you use certain Windows message handlers (In particular WM_NOTIFY) in your script, please read the function headers for the equivalent handlers within the UDF.
Here is the UDF, with 6 examples and the guide, in zip format: GUIListViewEx.zip
Credit to: martin (basic drag code), Array.au3 authors (array functions), KaFu and ProgAndy (font function), LarsJ (colouring code)
Happy to take compliments or criticism - preferably the former!
M23