SftTree/OCX 7.0

SftTreeSplitter.Offset Property

Softel vdm, Inc.

Defines the horizontal offset of the splitter bar in a split tree control.

Syntax       

Get

VB.NET

Offset = object.Offset  As Single

VB

Offset = object.Offset  As Single

C#.NET

float Offset = object.Offset;

VC++

float Offset = object->Offset;
float Offset = object->GetOffset();

C

HRESULT object->get_Offset(float* Offset);

Delphi

Offset := object.Offset   : Single;

Put

VB.NET

object.Offset = Offset  As Single

VB

object.Offset = Offset  As Single

C#.NET

float object.Offset = Offset;

VC++

float object->Offset = Offset;
void object->PutOffset(float Offset);

C

HRESULT object->put_Offset(float Offset);

Delphi

object.Offset := Offset   : Single;

object

A SftTreeSplitter object.

Offset

Defines the horizontal offset of the splitter bar in a split tree control.  If -1 is specified, the splitter bar is centered in the tree control's client area making each pane the same size and the Splitter.Offset property is updated with the actual offset.  If the offset specified falls outside of the client area, the splitter bar is aligned with the left or right edge, whichever is closer to the offset specified.  The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

Comments

The Offset property defines the horizontal offset of the splitter bar in a split tree control.

The Splitter.Offset and Splitter.OffsetPix properties are synonyms, but may use different coordinate systems.

The Splitter.Visible property is used to define a splitter bar.

Splitter.MakeOptimal can be used to position the splitter bar optimally, so the left pane can display as much data as possible without a horizontal scroll bar (based on the left pane's Items.HorizontalExtent property).

The coordinates of the splitter bar can be retrieved using Splitter.GetPosition.

The Splitter.Width property is used to change the width of the splitter bar

See Also  SftTreeSplitter Object | Object Hierarchy


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