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:
0 ecNone Object has no scroll bars (default)
1 ecHorizontal Object has a horizontal scroll bar
2 ecVertical Object has a vertical scroll bar
3 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.