Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread drag and drop ?
Mon, Mar 6 2017 7:05 AMPermanent Link

kamran

Hi

Looking to do some drag and drop if possible.

e.g drag "column 1 From GridA"   to   "column 1 of GridB"

I came across the following in the forum.

       function DoCaptureStart(Button: Integer; ShiftKey, CtrlKey, AltKey: Boolean; X,Y: Integer): Boolean; virtual;
       procedure DoCapturing(X,Y: Integer); virtual;
       procedure DoCaptureEnd(X,Y: Integer); virtual;

I think Tim was looking at the drag and drop side if things .. perhaps it is still on the list.

But quite how this would work with the current EWB version .. I am not clear.

Any pointers as to how this could be achieved would be helpful (assuming it is possible).

Thanks

Kamran
Mon, Mar 6 2017 8:00 AMPermanent Link

Matthew Jones

kamran wrote:

> Any pointers as to how this could be achieved would be helpful (assuming it is possible).

I think you have the pointers that are available! You would have to create a derived class from the grid, and then hook the events to do what you want. Not easy in the form you are proposing.

You would, I think, be better off offering a "configure" button and then use something like this from Uli:
http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=11855#11855

Or using drag and drop within/between them.

--

Matthew Jones
Tue, Mar 7 2017 9:01 AMPermanent Link

kamran

Thanks Matthew

I will leave it for now and look at what Uli has done with the panels example he has put on the forum.

Cheers

Kamran

"Matthew Jones" wrote:

kamran wrote:

> Any pointers as to how this could be achieved would be helpful (assuming it is possible).

I think you have the pointers that are available! You would have to create a derived class from the grid, and then hook the events to do what you want. Not easy in the form you are proposing.

You would, I think, be better off offering a "configure" button and then use something like this from Uli:
http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=11855#11855

Or using drag and drop within/between them.

--

Matthew Jones
Image