Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

MousePointer Property, SftMask Object

Defines the mouse pointer used.

Syntax

Get

VB.NETValue = object.MousePointer As SftMousePointerConstants
VBValue = object.MousePointer As SftMousePointerConstants
C#.NETSftMousePointerConstants Value = object.MousePointer;
VC++enum SftMousePointerConstants Value = object->MousePointer;
enum SftMousePointerConstants Value = object->GetMousePointer();
CHRESULT object->get_MousePointer(enum SftMousePointerConstants* Value);

Put

VB.NETobject.MousePointer = Value As SftMousePointerConstants
VBobject.MousePointer = Value As SftMousePointerConstants
C#.NETSftMousePointerConstants object.MousePointer = Value;
VC++enum SftMousePointerConstants object->MousePointer = Value;
void object->PutMousePointer(enum SftMousePointerConstants Value);
CHRESULT object->put_MousePointer(enum SftMousePointerConstants Value);

object

A SftMask object.

Value

Defines the mouse pointer used.

IconValueDescription
sftDefault0Default, Arrow
sftArrow1Arrow
sftCross2Cross (cross-hair pointer)
sftIBeam3I-Beam
sftIcon4Obsolete
sftSize5Size (four-pointed arrow pointing north, south, east, and west)
sftSizeNESW6Size NE SW (double arrow pointing northeast and southwest)
sftSizeNS7Size N S (double arrow pointing north and south)
sftSizeNWSE8Size NW SE (double arrow pointing northwest and southeast)
sftSizeWE9Size W E (double arrow pointing west and east)
sftUpArrow10Up Arrow
sftHourglass11Hourglass (wait)
sftNoDrop12No Drop
sftArrowHourglass13Arrow and hourglass
sftArrowQuestion14Arrow and question mark
sftSizeAll15Size all
sftCustom99Custom icon (specified by the MouseIcon property).

Comments

The MousePointer property defines the mouse pointer used when the mouse cursor is over a SftMask/OCX control.

Examples

VB.NET

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    AxSftMask1.MousePointer = SftMousePointerConstants.sftCross
End Sub

VB6

Private Sub Form_Load()
    ' A picture box is used to hold the icon for the MouseIcon property. A suitable
    ' icon has been defined in the picture box using its Picture property.
    Set SftMask1.MouseIcon = Picture1.Picture
    SftMask1.MousePointer = sftCustom
    ' Or use a predefined icon
    SftMask1.MousePointer = sftCross
End Sub

C#

private void Form1_Load(object sender, System.EventArgs e)
{
    axSftMask1.MousePointer = SftMousePointerConstants.sftCross;
}

C++

    PICTDESC PictDesc;
    PictDesc.cbSizeofstruct = sizeof(PICTDESC);
    PictDesc.picType = PICTYPE_ICON;
    PictDesc.icon.hicon = LoadIcon(NULL, MAKEINTRESOURCE(IDI_WINLOGO));
    IPictureDispPtr pIPictureDisp;
    HRESULT hr = OleCreatePictureIndirect(&PictDesc, IID_IPictureDisp, TRUE, (void**)&pIPictureDisp);
    ASSERT(SUCCEEDED(hr));
    m_pMask1->PutRefMouseIcon(pIPictureDisp);
    m_pMask1->MousePointer = sftCustom;

    // Or use a predefined icon
    m_pMask1->MousePointer = sftCross;

    return TRUE;
}

See Also SftMask Object | Object Hierarchy


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