The matrixbutton statement helps implement buttons in a matrix object.
This statement has two parameters:
clickbutton – Return object that was clicked on, or
"" if none,
buttonrectangle – Return location of object that was clicked on, or
"" if none.
This statement helps implement buttons in a matrix object. It can be called when a user clicks within a matrix to find out which object within the matrix frame was clicked on, if any.
local mButton matrixbutton mButton if mButton="Add" ... ... elseif mButton="Delete" ... ... endif
Note: Unlike the matrixbuttonhelper statement, you don’t need to supply a list of object names to this statement. It figures out the object names automatically by scanning the objects in the frame rectangle. However, you must assign a name to the object for it to be detectable by this statement.
|10.0||New||New in this version.|