SpreadsheetPointerBehavior
Package: Libraries.Interface.Behaviors.Controls · Inherits from: Libraries.Language.Object, Libraries.Interface.Behaviors.Behavior
The SpreadsheetPointerBehavior class answers the mouse and fingers on a Spreadsheet: a press selects (a double click edits a cell), dragging extends the selection or changes a column's width, and letting go ends it. Set up for the menu, a press opens the spreadsheet's menu instead, as a right click does. SpreadsheetInputSetup gives it its inputs, so most users won't need it.
Example Code
use Libraries.Interface.Behaviors.Controls.SpreadsheetPointerBehavior
SpreadsheetPointerBehavior behavior
behavior:SetOpensMenu(true)
Actions
IsFinished()
This action returns true: each event's work is done at once.
Returns
boolean: True.
Run(Libraries.Interface.Events.BehaviorEvent event)
This action passes the mouse or finger to the spreadsheet. The input tables call it, so most users won't need to.
Parameters
eventLibraries.Interface.Events.BehaviorEvent: The event, whose item is the spreadsheet.
SetOpensMenu(boolean value)
This action sets whether a press opens the menu, as a right click does, instead of selecting.
Parameters
valueboolean: True to open the menu.