Livecode Wiki
Advertisement

Sent to a scrollbar when the user clicks the decrease arrow, scrolling backward one line.

Syntax:

scrollbarLineDec <newPosition>

Examples:

on scrollbarLineDec newCharNumber
-- use a scrollbar to scroll through data, one character at a time
  put char newCharNumber of field "Data" into field "Display"
end scrollbarLineDec

Handle the scrollbarLineDec message if you want to respond to the use of the top or left scrollbar arrow.

Dragging the scrollbar thumb does not send a scrollbarLineDec message.

If the scrollbarLineDec message is not handled, a scrollbarDrag message is sent in addition.

Parameters:

  • newPosition: The new position of the scrollbar thumb.

See also: scrollbarDrag (message),scrollbarLineInc (message),scrollbarBeginning (message),lineIncrement (property),

Advertisement