Product: TMS Web Core + TMS FNC Chart
Version: Delphi 12, TMS Web Core (2.9.1.0), TMS FNC Chart (3.0.1.7)
)
1. Error Description
When creating an OnMouseWheel
event handler for TTMSFNCChart
in a TMS Web Core project, the IDE generates an event handler signature that includes the parameter MousePos: TPoint
.
However, TPoint
is not defined in the Web Core environment, leading to an immediate compilation error.
2. Steps to Reproduce
a) Create a new TMS Web Core project.
b) Drop a TTMSFNCChart
component onto the form.
c) In the Object Inspector, create the OnMouseWheel
event handler.
d) At this point, IDE already shows an error (see attached screenshot).
e) Add any content (even just a comment) to the event handler and compile.
procedure TForm1.TMSFNCChart1MouseWheel(Sender: TObject; Shift: TShiftState;
WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
begin
// comment only
end;
f) Compilation fails with the following error:
[Error] failMouseWheel4fncChartonWebCoreP.pas(14): identifier not found "TPoint"
3. Expected Behavior
The event handler should compile successfully, and the OnMouseWheel
event should provide usable mouse wheel information for the chart.
4. Actual Behavior
The event handler signature generated by the IDE references TPoint
, which does not exist in the Web Core environment, causing a compilation error and preventing use of the event.
5. Additional Information
- The problem occurs immediately after generating the event handler from the Object Inspector.
- A screenshot of the error is attached (see Image 1).
- It seems to be a mismatch between the VCL/FMX event signature and the Web Core version.