[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TScrollCode

The scroll action type, as reported by the widget.

Declaration

Source position: stdctrls.pp line 47

type TScrollCode = (

  scLineUp,

  

Scroll one line up (column left).

  scLineDown,

  

Scroll one line down (column right).

  scPageUp,

  

Scroll one page up (left).

  scPageDown,

  

Scroll one page down (right).

  scPosition,

  

Scroll to the specified position.

  scTrack,

  

Scroll tracking to the specified position.

  scTop,

  

Scroll to the top (left) end.

  scBottom,

  

Scroll to the bottom (right) end.

  scEndScroll

  

Scrolling finished.

);

Description

TScrollCode is an enumerated type with values that represent scroll actions received from the widgetset class for a scrollbar. The positions and values in the enumeration correspond to the constants defined in the LCLType unit, and include:

Values in TScrollCode are passed as an argument to the Scroll method in TCustomScrollBar, and subsequently to the TScrollEvent event handler in the OnScroll property.

See also

TScrollEvent

  

Defines an event handler type for scrollbar events.

TCustomScrollBar.Scroll

  

Signals the OnScroll event handler.

TCustomScrollBar.OnScroll

  

Event handler signalled when scrollbar messages are applied.


Version 3.2 Generated 2024-02-25 Home