SftTree/OCX 7.0

SftTree.BackgroundStyle Property

Softel vdm, Inc.

Defines the scrolling style of the background bitmap.

Syntax       

Get

VB.NET

Style = object.BackgroundStyle  As SftTreeBackgroundStyleConstants

VB

Style = object.BackgroundStyle  As SftTreeBackgroundStyleConstants

C#.NET

SftTreeBackgroundStyleConstants Style = object.BackgroundStyle;

VC++

enum SftTreeBackgroundStyleConstants Style = object->BackgroundStyle;
enum SftTreeBackgroundStyleConstants Style = object->GetBackgroundStyle();

C

HRESULT object->get_BackgroundStyle(enum SftTreeBackgroundStyleConstants* Style);

Delphi

Style := object.BackgroundStyle  : TOleEnum;

Put

VB.NET

object.BackgroundStyle = Style  As SftTreeBackgroundStyleConstants

VB

object.BackgroundStyle = Style  As SftTreeBackgroundStyleConstants

C#.NET

SftTreeBackgroundStyleConstants object.BackgroundStyle = Style;

VC++

enum SftTreeBackgroundStyleConstants object->BackgroundStyle = Style;
void object->PutBackgroundStyle(enum SftTreeBackgroundStyleConstants Style);

C

HRESULT object->put_BackgroundStyle(enum SftTreeBackgroundStyleConstants Style);

Delphi

object.BackgroundStyle := Style  : TOleEnum;

object

A SftTree object.

Style

Defines the scrolling style of the background bitmap.

Style

Value

Description

backSftTreeNone

0

The bitmap is never scrolled horizontally and is aligned with the top/left edge of the tree control window (or the offset defined using the properties BackgroundX and BackgroundY).

backSftTreeHScroll

1

The bitmap is aligned with the top/left edge of the tree control window (or the offset defined using the properties BackgroundX and BackgroundY) and the alignment is further adjusted by the current horizontal scrolling offset (see Items.HorizontalOffset) resulting in horizontal scrolling of the background.

backSftTreeCenter

2

The bitmap is centered vertically and horizontally within the available area.  Bitmap transparency is used for the bitmap when used with this style.

Comments

The BackgroundStyle property defines the scrolling style of the background bitmap.

If a background picture has been defined using the BackgroundPicture property, the BackgroundStyle property defines the bitmap positioning and behavior when the tree control contents are scrolled horizontally. 

See Also  SftTree Object | Object Hierarchy


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