info("matrixclickedobject")
info("matrixclickedobject")

The info(“matrixclickedobject”) function identifies which named object in a matrix was clicked on (if any).

Description

This function identifies which named object in a matrix was clicked on (if any). Objects in a matrix don’t directly respond to clicks. For example, if a button object is placed in a matrix, clicking on the button doesn’t trigger the code associated with that button (unless the button is placed in the header or corner header section of the matrix). However, the code associated with the Matrix object can use the info(“matrixclickedobject”) function to identify which object was clicked on and then perform the appropriate action.

    if info("matrixclickedobject") = "Add Row"
        ...
        ...
        ...
    elseif info("matrixclickedobject") = "Delete Row"
        ...
        ...
        ...
    endif

Of course for this example to work, the matrix frame must contain objects named Add Row and Delete Row (see Object Names).

See Also

- dragarrayorder -- tracks dragging of a cell within a Matrix or Text List object, then reorders the array associated with that object accordingly.
- dragwithinmatrix -- tracks dragging of a cell within a Matrix or Text List object.
- info("matrixcell") -- returns the current cell number within a matrix object.
- info("matrixcelldata") -- returns the data associated with the current matrix object cell.
- info("matrixclickedframe") -- identifies which section of a matrix was clicked on.
- info("matrixclickedobjectid") -- returns the object id of the object in a matrix that was clicked on (or zero if none).
- info("matrixclickinfo") -- identifies what section and what named object was clicked on in a matrix.
- info("matrixcolumn") -- returns the current column number within a matrix object.
- info("matrixname") -- returns the name of the matrix object being drawn, if any.
- info("matrixrow") -- returns the current row number within a matrix object.
- info("matrixseparator") -- function returns the separator associated with the current matrix.
- matrixbutton -- helps implement buttons in a matrix object.
- matrixbuttonhelper -- helps implement buttons in a matrix object.
- matrixclick -- will run the code belonging to an object that was clicked within a matrix frame.
- matrixclickedobjectid -- helps implement buttons in a matrix object.
- matrixredrawclickedcell -- redraws the matrix cell that was just clicked.

History

Version | Status | Notes
10.0 | New | Carried over from Panorama 6.0