Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBox.Scrollbars Property

Defines the presence of horizontal and vertical scroll bars.

Syntax

Get

VB.NETStyle = object.Scrollbars As SftBoxScrollbarsConstants
VBStyle = object.Scrollbars As SftBoxScrollbarsConstants
C#.NETSftBoxScrollbarsConstants Style = object.Scrollbars;
VC++enum SftBoxScrollbarsConstants Style = object->Scrollbars;
enum SftBoxScrollbarsConstants Style = object->GetScrollbars();
CHRESULT object->get_Scrollbars(enum SftBoxScrollbarsConstants* Style);

Put

VB.NETobject.Scrollbars = Style As SftBoxScrollbarsConstants
VBobject.Scrollbars = Style As SftBoxScrollbarsConstants
C#.NETSftBoxScrollbarsConstants object.Scrollbars = Style;
VC++enum SftBoxScrollbarsConstants object->Scrollbars = Style;
void object->PutScrollbars(enum SftBoxScrollbarsConstants Style);
CHRESULT object->put_Scrollbars(enum SftBoxScrollbarsConstants Style);

object

A SftBox object.

Style

Defines the desired scroll bars to be used.

StyleValueDescription
scrollSftBoxNone0No scroll bars are shown.
scrollSftBoxHorz1A horizontal scroll bar is shown if horizontal scrolling is possible, because the horizontal extent is wider than the display area of the drop down portion, otherwise the horizontal scroll bar is not shown. For more information, see the Items.HorizontalExtent property.
scrollSftBoxVert2A vertical scroll bar is shown if vertical scrolling is possible, because more items are available than fit into the display area of the drop down portion, otherwise the vertical scroll bar is not shown.
scrollSftBoxBoth3The horizontal and vertical scroll bars are shown if needed. See scrollSftBoxHorz and scrollSftBoxVert.
scrollSftBoxHorzDis4The horizontal scroll bar is always shown. The scroll bar is enabled if horizontal scrolling is possible, because the horizontal extent is wider than the display area of the drop down portion, otherwise the horizontal scroll bar is disabled. For more information, see the Items.HorizontalExtent property.
scrollSftBoxVertDis5The vertical scroll bar is always shown. The scroll bar is enabled if more items are available than fit into the display area of the drop down portion, otherwise the vertical scroll bar is disabled.
scrollSftBoxBothDis6The scroll bars are always shown. The scroll bars may be enabled and disabled as described with scrollSftBoxHorzDis and scrollSftBoxVertDis.

Comments

The Scrollbars property defines the presence of horizontal and vertical scroll bars.

Horizontal scrolling is also dependent on the settings of the Items.HorizontalExtent property or the use of the Items.RecalcHorizontalExtent method.

This property is read/only at run-time.

See Also SftBox Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.