SftMask/OCX 6.5

SftMask.OptimalPosition Method

Softel vdm, Inc.

Updates the caret location and makes it optimal.

Syntax       

VB.NET

object.OptimalPosition(ByVal GoingRight As Boolean)

VB

object.OptimalPosition(ByVal GoingRight As Boolean)

C#.NET

void object.OptimalPosition(bool GoingRight);

VC++

HRESULT object->OptimalPosition(VARIANT_BOOL GoingRight);

C

HRESULT object->raw_OptimalPosition(VARIANT_BOOL GoingRight);

Delphi

procedure object.OptimalPosition(GoingRight : WordBool);

object

A SftMask object.

GoingRight

Specifies the direction for the optimal position.

Boolean

Description

True

The position is optimized by moving it to the right.

False

The position is optimized by moving it to the left.

Comments

The OptimalPosition method updates the caret location and makes it optimal.

An "optimal" caret location is considered a location where the user would normally enter data in a numeric field. When setting the input location (using SelStart), the OptimalPosition method can insure that the input location is valid. It insures that the input location is at a suitable location for numeric input fields.

Outside of numeric fields, this method has no effect.


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