FMX, TeeChart, drag drop operation
Posted: Wed Dec 15, 2021 3:51 am
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:
should read:
and then after the broadcast,
the line that says:
should read:
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;