TdxSpreadSheetTableView.ShowEditByMouse(Integer,Integer,TShiftState) Method
Activates an in-place editor for a cell under the mouse pointer.
Declaration
procedure ShowEditByMouse(X: Integer; Y: Integer; AShift: TShiftState);
Parameters
Name | Type |
---|---|
X | Integer |
Y | Integer |
AShift | TShiftState |
Remarks
The ShowEdit, ShowEditByKey, and ShowEditByMouse procedures are designed to activate an in-place cell editor programmatically.
Activates the in-place editor for a cell in which the mouse pointer is located. This method is called internally when an end-user clicks a cell within the Spreadsheet Control. If the control is not focused, calling the ShowEditByMouse procedure has no effect.
The state of mouse buttons is passed as the AShift parameter. X and Y parameters identify the respective coordinates of the mouse pointer relative to the top left corner of the Table View worksheet.
To close the in-place active cell editor, invoke the HideEdit procedure.
Note
You may need to move the input focus to the Spreadsheet control by calling its SetFocus method prior to invoking the ShowEditByMouse procedure.