ScrollBars property


Available for Window, MDIWindow, DialogBox, Edit, Picture and RichEdit objects.

Read/Write at design time
Read/Write at run time

Specifies whether an object has scroll bars. It can be one of the following values:

ecNone             Object has no scroll bars (default)
ecHorizontal     Object has a horizontal scroll bar
ecVertical         Object has a vertical scroll bar
ecBoth              Object has both, horizontal and vertical scroll bars


REMARKS
: Scroll bars created by this property have no handle, that is, they are not controls like HScroll and/or VScroll objects. When sending WM_HSCROLL and WM_VSCROLL messages to their parent, the lParam parameter is NULL. On the other hand, when HScroll and VScroll objects send WM_HSCROLL and WM_VSCROLL messages to their parent, the lParam parameter is the handle to the control object sending the message.