SftTree/OCX 7.0

SftTreeSplitter.OffsetPix Property

Softel vdm, Inc.

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

Syntax       

Get

VB.NET

OffsetPix = object.OffsetPix  As Integer

VB

OffsetPix = object.OffsetPix  As Long

C#.NET

int OffsetPix = object.OffsetPix;

VC++

long OffsetPix = object->OffsetPix;
long OffsetPix = object->GetOffsetPix();

C

HRESULT object->get_OffsetPix(long* OffsetPix);

Delphi

OffsetPix := object.OffsetPix   : Integer;

Put

VB.NET

object.OffsetPix = OffsetPix  As Integer

VB

object.OffsetPix = OffsetPix  As Long

C#.NET

int object.OffsetPix = OffsetPix;

VC++

long object->OffsetPix = OffsetPix;
void object->PutOffsetPix(long OffsetPix);

C

HRESULT object->put_OffsetPix(long OffsetPix);

Delphi

object.OffsetPix := OffsetPix   : Integer;

object

A SftTreeSplitter object.

OffsetPix

Defines the horizontal offset of the splitter bar in a split tree control in pixels.  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.

Comments

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