Editable Listbox with Drag and Drop

BlitzMax Forums/BlitzMax Programming/Editable Listbox with Drag and Drop

danielos(Posted 2009) [#1]
Hi!

I'm using Zitlich's and Ghostdancer's code for listboxes (I have found it somewhere around here) and I have to say, the code is nearly perfect; though I would love to have two more things:

1.) The listbox is only semi-editable, as a cursor appears and you can type something into the field, though the original text appears after you clicked "Enter". Unfourtunately, there is not even an Event transmitted that you could work with... In Addition, you can only "edit" the very left column, not the ones on the right

2.) I'd also be great if it was possible to drag and drop elements of a listbox into a certain order.

(I know that Brucey has released the wxListbox which is multi-plattform, but I cannot fully rewrite my source codes... )

I hope that somebody can help me...

Thanks in advance,

Daniel


xlsior(Posted 2009) [#2]
Maxgui really could do with some 'official' multi column textbox handler...


Ziltch(Posted 2009) [#3]
Is this the code of mine you looked at
http://www.blitzbasic.com/Community/posts.php?topic=62706#700557

It keeps the editing, but as you mentioned, only on the 1st column.

Draging and droping into the same list should not be very tricky. ;)


danielos(Posted 2009) [#4]
Thanks for your answer!

"It keeps the editing"

really ?

I've tried your example various times, but it never did... is it my fault ? ^^


Danel