Skip to content

TranslateMouseCoordinates

property

Delphi
property TranslateMouseCoordinates: Boolean read GetTranslateMouseCoordinates write SetTranslateMouseCoordinates  default DEF_TranslateMouseCoordinates;
C++Builder
__property bool TranslateMouseCoordinates = {read=GetTranslateMouseCoordinates, write=SetTranslateMouseCoordinates, default=1};
C#
public bool TranslateMouseCoordinates { get; set; }
VB.NET
Public Property TranslateMouseCoordinates As Boolean
C++/Qt
BOOL GetTranslateMouseCoordinates ();
void SetTranslateMouseCoordinates (BOOL Value);

Converts the mouse coordinates of OnMouseMove, OnMouseDown and OnMouseUp into their corresponding native video coordinates. Use this property when drawing over the video frames with the mouse coordinates returned by the mouse events while the preview zoom size is not 100%.

  • When this property is disabled, the mouse events return the zoomed coordinates, which do not match the native coordinates needed to draw over the frames from the OnFrameOverlayUsingDC event.

  • When this property is enabled, OnMouseMove, OnMouseDown and OnMouseUp always return the native video coordinates, whatever the preview zoom size.