dragwithinmatrix
STARTCELL
,
ENDCELL

The dragwithinmatrix statement tracks dragging of a cell within a Matrix or Text List object.


Parameters

This statement has two parameters:

startcell – cell number that was the starting point of the drag (cells are numbered starting from 1).

endcell – cell number that was the ending point of the drag (cells are numbered starting from 1). If the drag ends up outside the clicked object, the starting and ending cells will be the same.


Description

This statement tracks dragging of a cell within a Matrix or Text List object. It should only be called when the user has clicked on one of these objects (also, the Click/Release option for the object must be turned off).

local ocell,ncell
dragwithinmatrix ocell,ncell
if ocell<>ncell
    message "Dragged from "+ocell+" to "+ncell
endif

Note: The Text List or Matrix object that invokes this statement doesn’t need to have an object name – the dragwithinmatrix statement automatically figures out which object was clicked on.


See Also


History

VersionStatusNotes
10.0NewNew in this version.