Reference > TDBText Control > TDBText Control Properties > ScrollBars Property (TDBText) |
ScrollBars Property (TDBText)
Sets/returns whether the control has horizontal or vertical scroll bars.
object.ScrollBars
Read/Write at design time. Read-only at run time.
Design Time |
Run Time |
0 - None (Default) |
dbiScrollBarsNone |
1 - Horizontal |
dbiScrollBarsHorizontal |
2 - Vertical |
dbiScrollBarsVertical |
3 - Both |
dbiScrollBarsBoth |
Read only at run time. To display the scroll bars, you must have the MultiLine property set to True. You can set whether the scroll bars can display at all times or only when the contents exceed the length of the control with the ScrollBarMode property.
If no horizontal scroll bar is specified, the text in a multiple-line control automatically wraps.
A vertical scroll bar will be displayed at all time in the drop-down edit window.
See Also