SftMask/OCX 6.5

SftMask.HitTestPix Method

Softel vdm, Inc.

Determines the area at a given location.

Syntax       

VB.NET

Success = object.HitTestPix(ByVal xPix As Integer, ByVal yPix As Integer, ByRef Area As SftMaskAreaConstants)  As Boolean

VB

Success = object.HitTestPix(ByVal xPix As Long, ByVal yPix As Long, Area As SftMaskAreaConstants)  As Boolean

C#.NET

bool Success = object.HitTestPix(int xPix, int yPix, out SftMaskAreaConstants Area);

VC++

VARIANT_BOOL Success = object->HitTestPix(long xPix, long yPix, enum SftMaskAreaConstants* Area);

C

HRESULT object->raw_HitTestPix(long xPix, long yPix, enum SftMaskAreaConstants* Area, VARIANT_BOOL* Success);

Delphi

Success := object.HitTestPix(xPix : Integer; yPix : Integer; out Area : TOleEnum)   : WordBool;

object

A SftMask object.

xPix

An expression that evaluates to the x coordinate to be tested.

yPix

An expression that evaluates to the y coordinate to be tested.

Area

Returns the area description where the coordinates x, y are located.

Area

Value

Description

areaSftMaskCaption

0

Caption area

areaSftMaskEdit

1

Edit control (i.e., the editable portion of the control)

areaSftMaskSpin 

2

Up/down buttons

areaSftMaskDropDown

3

Drop down button

areaSftMaskEllipse

4

Ellipse button

Success

Returns True if the coordinates xPix, yPix are located in the control.

Comments

The HitTestPix method determines the area at a given location.

The general area where the coordinates described by xPix, yPix are located in the control (relative to the top, left corner of the control) is returned in Area.

HitTestV is used for languages such as VBScript, which are limited by requiring Variant arguments and do not support strongly typed arguments for return values. For more information please see Using SftMask/OCX with Internet Explorer.


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