Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter EighteenDataView Integration (continued)

on_context_menu

Overview

The on_context_menu event is called when the user either right clicks or presses the windows context menu key.

Syntax/Parameters

Syntax

void on_context_menu ( int m_sx, int m_sy, int row, int column ) { ... }

Parameters

m_x

An int as the x mouse position or best position for menu presentation in screen coordinates.

m_y

An int as the y mouse position or best position for menu presentation in screen coordinates.

row

An int as the current row position of the caret.

column

An int as the current column position of the caret.

Return Value

No return value.

Remarks

The hook gives the attached script the opportunity to present a context menu. The mouse position (or cell) is presented in screen coordinate and the position of the cell with the caret is also provided.

If the Context Menu key is pressed, Data or Forms view will calculate the lower right position of the cell with the caret and present that to the hook.

Related Events & Functions

Page revised 2024-10-21