Hello
I would like to implement a simple drag & drop (one item in a list dragged and dropped in the very same list, but at another position), if y could have some help to start because i have no idea ,
thanks
MultiColumnList Drag & Drop
Moderators: CEGUI MVP, CEGUI Team
Re: MultiColumnList Drag & Drop
Hi. What search terms did you try?
I am not familiar with the Drag & Drop feature, however from searching the forum and searching the wiki it sounds like Drag & Drop is only supported for window-based elements. Since MultiColumnList uses ListboxItem which is not window-based (as mentioned in those links) it appears that the MultiColumnList does not support Drag & Drop by default.
I am not familiar with the Drag & Drop feature, however from searching the forum and searching the wiki it sounds like Drag & Drop is only supported for window-based elements. Since MultiColumnList uses ListboxItem which is not window-based (as mentioned in those links) it appears that the MultiColumnList does not support Drag & Drop by default.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: MultiColumnList Drag & Drop
Hello
yes i found the topics and i wanted to be sure it was not really possible, thinking that i may have missed something,
actuallymulticolumnlist is window based, so maybe creating dragcontainer for each item something like this?
dont know maybe someone managed to build a custom class?
yes i found the topics and i wanted to be sure it was not really possible, thinking that i may have missed something,
actuallymulticolumnlist is window based, so maybe creating dragcontainer for each item something like this?
dont know maybe someone managed to build a custom class?
Re: MultiColumnList Drag & Drop
Tiresias wrote:actuallymulticolumnlist is window based
Jamarr wrote:Since MultiColumnList uses ListboxItem which is not window-based
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: MultiColumnList Drag & Drop
Actually maybe i have an idea, why not doing something like:
get the event click on the list,
if this is on listitem , store "a drag flag", store list position , and change MouseCursor to listitem image (i am associating image with each listitem),
then capture event click release (would have to check if there is such event),
if drag flag was on then find new position, delete item from list and reinsert it new position?
of course if mouse move outside list maybe clear drag flag etc, need to think about this,
if someone did it this way it would be nice to hear from him,
dont know if cegui handle mousemove need to check this, not sure at all actually,
(edit: i checked and all events are there (EventMouseMove, MouseLeave, etc), so i believe it *should* work , i will try and let you know, if someone (jamar yes i know its not supported ) please let me know)
cheers
get the event click on the list,
if this is on listitem , store "a drag flag", store list position , and change MouseCursor to listitem image (i am associating image with each listitem),
then capture event click release (would have to check if there is such event),
if drag flag was on then find new position, delete item from list and reinsert it new position?
of course if mouse move outside list maybe clear drag flag etc, need to think about this,
if someone did it this way it would be nice to hear from him,
dont know if cegui handle mousemove need to check this, not sure at all actually,
(edit: i checked and all events are there (EventMouseMove, MouseLeave, etc), so i believe it *should* work , i will try and let you know, if someone (jamar yes i know its not supported ) please let me know)
cheers
Re: MultiColumnList Drag & Drop
It's not supported by default. I never said you couldn't do it yourself. Had you actually searched the forum you would see that others have implemented it themselves. It's obvious you do not understand English that well. Anyway, your approach sounds reasonable, good luck.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 7 guests