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

SetOpensMenu(boolean value)

This action sets whether a press opens the menu, as a right click does, instead of selecting.

Parameters

  • value boolean: True to open the menu.

Inherited Actions

6 actions from Libraries.Interface.Behaviors.Behavior
3 actions from Libraries.Language.Object