Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Big list drag/drop multi-select moving
Mon, Oct 2 2017 11:08 AMPermanent Link

Matthew Jones

Anyone done anything with drag and drop to move items within a large list? Perhaps 200+ items, select a bunch, and move way up or down keeping the selection together. Something that looked nice would be good too! 8-) This would be basic text lines, but with a list of backing objects, and some highlighted if possible.

--

Matthew Jones
Tue, Oct 3 2017 3:07 AMPermanent Link

Mark Brooks

Slikware

Avatar

"Matthew Jones" wrote:

>>Anyone done anything with drag and drop to move items within a large list? Perhaps 200+ items, select a bunch, >>and move way up or down keeping the selection together. Something that looked nice would be good too! 8-) This >>would be basic text lines, but with a list of backing objects, and some highlighted if possible.

Matthew

Ive done lots of work with lists where each item is essentially a descendant of TBasicPanelControl using layouts to arrange everything and LayoutOrder to move things around. This works fantastically even for very large numbers of items. Adding some animation gives a really nice effect when items change positions. Using different Interfaces also allows for multi-select.

However, Ive yet to play with multi-select. Let me know when you get that bit working!

Mark
Tue, Oct 3 2017 8:53 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Anyone done anything with drag and drop to move items within a large list? Perhaps 200+ items, select a bunch, and move way up or down keeping the selection together. Something that looked nice would be good too! 8-) This would be basic text lines, but with a list of backing objects, and some highlighted if possible. >>

Is "the list" a TListBox, or your own creation ?

The key is using the mouse capture events to make sure that you can perform the drag and drop properly.  The rest is really down to just detecting the control underneath the mouse and determining when to drop.

I'm doing a new EWB build today, so I will add a new method for "ControlAt" functionality.  This one has been on the list for some time, and I forgot about it until now.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Oct 3 2017 11:50 AMPermanent Link

Matthew Jones

Tim Young [Elevate Software] wrote:

> Is "the list" a TListBox, or your own creation ?

At this point, it can be whatever. My dream is to have a big window with 200+ lines. They would be quite small until you mouse over them at which point they'd zoom to larger so you could actually read it. Then you'd start a selection, move to the end and complete the selection. Then start a drag and it all zooms small/large to allow you to find the target, at which point you click or release or something to drop them.

--

Matthew Jones
Wed, Nov 22 2017 3:58 AMPermanent Link

Anthony

Tim Young [Elevate Software] wrote:

> I'm doing a new EWB build today, so I will add a new method for "ControlAt" functionality.  This one has been on the list for some time, and I forgot about it until now.

I've not attempted drag and drop before but looking for a way to rearrange ListBox items, after searching I found references for ControlAt and Capture event that I should be using, are these implemented in 2.06 b10 as I can't find them in the manual or and usage example which would be most useful.
Wed, Nov 22 2017 5:37 AMPermanent Link

Matthew Jones

Anthony wrote:

> Capture

This is definitely available. Look at the source as you need to implement these in your own components. I didn't find it hard to do.

--

Matthew Jones
Mon, Oct 8 2018 8:16 AMPermanent Link

ooptimum

I need this method, but I can't find it. Was it added or not? If not, what's the best way to know an uppermost control lying on surface at XY?

Tim Young [Elevate Software] wrote:

<<I'm doing a new EWB build today, so I will add a new method for "ControlAt" functionality.  This one has been on the list for some time, and I forgot about it until now.>>
Tue, Oct 9 2018 1:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< I need this method, but I can't find it. Was it added or not? If not, what's the best way to know an uppermost control lying on surface at XY? >>

I must have gotten side-tracked and not implemented it yet.  I will make sure that it's in EWB 3 (or earlier, if I can).

Tim Young
Elevate Software
www.elevatesoft.com
Image