Livecode Wiki
Advertisement

A Message sent to a scrollbar when the user Shift-clicks its increase arrow. If there is a message handler by the same name in the message path, then it will be executed.

Message[]

Syntax:

scrollbarEnd <end>

The parameter <end> is the new position of the scrollbar thumb. This is the same as the scrollbar's endValue property.

Dragging the scrollbar thumb to the end position, or otherwise moving it to the end, does not send a scrollbarEnd message.

Message handler[]

Examples:

on scrollbarEnd               -- use a scroll bar to navigate among cards
  visual effect scroll up
  go last card
end scrollbarEnd

Use the scrollbarEnd Message handler to respond to the use of Shift-click to move the scrollbar thumb directly to the end (the bottom or right) of the scrollbar.

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

See also: scrollbarDrag, scrollbarLineInc & scrollbarBeginning.

Advertisement