SftBox/OCX 4.5

SftBox.Scrollbars Property

Softel vdm, Inc.

Defines the presence of horizontal and vertical scroll bars.

Syntax       

Get

VB.NET

Style = object.Scrollbars  As SftBoxScrollbarsConstants

VB

Style = object.Scrollbars  As SftBoxScrollbarsConstants

C#.NET

SftBoxScrollbarsConstants Style = object.Scrollbars;

VC++

enum SftBoxScrollbarsConstants Style = object->Scrollbars;
enum SftBoxScrollbarsConstants Style = object->GetScrollbars();

C

HRESULT object->get_Scrollbars(enum SftBoxScrollbarsConstants* Style);

Delphi

Style := object.Scrollbars  : TOleEnum;

Put

VB.NET

object.Scrollbars = Style  As SftBoxScrollbarsConstants

VB

object.Scrollbars = Style  As SftBoxScrollbarsConstants

C#.NET

SftBoxScrollbarsConstants object.Scrollbars = Style;

VC++

enum SftBoxScrollbarsConstants object->Scrollbars = Style;
void object->PutScrollbars(enum SftBoxScrollbarsConstants Style);

C

HRESULT object->put_Scrollbars(enum SftBoxScrollbarsConstants Style);

Delphi

object.Scrollbars := Style  : TOleEnum;

object

A SftBox object.

Style

Defines the desired scroll bars to be used.

Style

Value

Description

scrollSftBoxNone 

0

No scroll bars are shown.

scrollSftBoxHorz 

1

A 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.

scrollSftBoxVert 

2

A 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.

scrollSftBoxBoth 

3

The horizontal and vertical scroll bars are shown if needed. See scrollSftBoxHorz and scrollSftBoxVert.

scrollSftBoxHorzDis 

4

The 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.

scrollSftBoxVertDis 

5

The 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.

scrollSftBoxBothDis 

6

The 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.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com