Bug Report – TMSFNCChart OnMouseWheel Event Compilation Error in TMS Web Core

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.

Please add the unit Types to the uses clause.

bugReprtFncChartwithTMSWEBCORE.zip (11.5 KB)
I have attached the simplest Delphi project file that gives the compile error. Is this sufficient?

Please add the unit Types to the uses list, as I already indicated.
I corrected it for you.
Project1.zip (9.3 KB)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.