TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
-
bflorac
- Newbie
- Posts: 2
- Joined: Mon Sep 21, 2020 12:00 am
Post
by bflorac » 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: 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;
-
Yeray
- Site Admin
- Posts: 9622
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Wed Dec 15, 2021 10:14 pm
Hello,
I've just implemented your proposal (
#2493). Thanks for the input!