CGridCtrl:GetCellDblClick, CGridView:GetCellDblClick


The GetCellDblClick method returns the last column and row where the mouse button was last double-clicked. If no cell was double-clicked, then it returns -100, -100. This method returns 1-based column and row grid coordinates. It may be used both when a grid is attached from a script and when a script is called from the grid.

Syntax

nColumn, nRow = CGridCtrl:GetCellDblClick()

bullet.gif    Where nColumn and nRow are 1-based grid coordinates of the cell where the mouse was double-clicked.

Example

The following script attaches a grid window and returns the location where the mouse button was double-clicked:

V = attach_gridview()

-- attaches the top-most grid window from Mira

G = new_gridctrl(V)

-- create a CGridCtrl for the window

nCol, nRow = G:GetCellDblClick()

-- return the column and row where the moue was double-clicked.

Related Topics

CGridCtrl class

GetCellStart

GetCellEnd


Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.