Page 1 of 1

FMX, TeeChart, drag drop operation

Posted: Wed Dec 15, 2021 3:51 am
by 16589512
In the DragOver event, if you set the operation, it does not reflect the operation of the drag/drop. For example, setting it to TDragOperation.None should result it the "not accept" icon.

I can see in the FMXTee.Chart code, procedure TCustomChart.DragOver, the Operation is ignored. Clearly we are trying to make this work the VCK version which only has 2 states.

Fix:
the line that says: tmpB:=True;
should read: tmpB := Operation <> TDragOperation.None;

and then after the broadcast,

the line that says: if tmpB then Operation:=TDragOperation.Move;
should read: if not tmpB then Operation:=TDragOperation.None;

Re: FMX, TeeChart, drag drop operation

Posted: Wed Dec 15, 2021 10:14 pm
by yeray
Hello,

I've just implemented your proposal (#2493). Thanks for the input!