Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

OffsetPix Property, SftTreeSplitter Object

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

Syntax

Get

VB.NETOffsetPix = object.OffsetPix As Integer
VBOffsetPix = object.OffsetPix As Long
C#.NETint OffsetPix = object.OffsetPix;
VC++long OffsetPix = object->OffsetPix;
long OffsetPix = object->GetOffsetPix();
CHRESULT object->get_OffsetPix(long* OffsetPix);

Put

VB.NETobject.OffsetPix = OffsetPix As Integer
VBobject.OffsetPix = OffsetPix As Long
C#.NETint object.OffsetPix = OffsetPix;
VC++long object->OffsetPix = OffsetPix;
void object->PutOffsetPix(long OffsetPix);
CHRESULT object->put_OffsetPix(long OffsetPix);

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


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