ToolsAPI.Editor.INTACodeEditorEvents370.EditorMouseDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EditorMouseDown(const Editor: TWinControl; Button: TMouseButton; Shift: TShiftState; X, Y: Integer; var Handled: Boolean);

C++

HIDESBASE virtual void __fastcall EditorMouseDown(Vcl::Controls::TWinControl* const Editor, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y, bool &Handled) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
ToolsAPI.Editor.pas
ToolsAPI.Editor.hpp
ToolsAPI.Editor INTACodeEditorEvents370

Description

Notifies when a mouse button is pressed in the editor.

To receive notifications from this event, you should add cevMouseEvents in the AllowedEvents result.

The following are the available parameters:

  • Editor: The editor control that receives the mouse input.
  • Button: The mouse button that was pressed.
  • Shift: Modifier keys (Shift, Ctrl, Alt) pressed during the event.
  • X: Horizontal position of the mouse cursor.
  • Y: Vertical position of the mouse cursor.
  • Handled: Enable it to mark the event as handled and prevent further processing.

See Also