List Box Drag items and edit item text example.WIN

BlitzMax Forums/MaxGUI Module/List Box Drag items and edit item text example.WIN

Ziltch(Posted 2006) [#1]
I have figured out how to drag items from one listbox to another and how to edit listbox items.

As it was a little tricky, I thought others may find this code handy.

I use windows subclasses to get access to the windows messages I needed. With Subclasses you can also modify the behavour of a gadget before it is drawn. e.g A textbox that only allows hex 0-9 A-F.

This code is for Windows only.

This code works with BlitzMax 1.22

Note:
The example shows a directory list and all pics in that directory.
If you click on a selected item (A picture filename), the changed text does not really rename the file on your drive. So you can do no harm testing out the editing feature!

You can only drag a single item at a time. (at this point!)