Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.MousePointer Property

Defines the mouse pointer used.

Syntax

Get

VB.NETIcon = object.MousePointer As SftMousePointerConstants
VBIcon = object.MousePointer As SftMousePointerConstants
C#.NETSftMousePointerConstants Icon = object.MousePointer;
VC++enum SftMousePointerConstants Icon = object->MousePointer;
enum SftMousePointerConstants Icon = object->GetMousePointer();
CHRESULT object->get_MousePointer(enum SftMousePointerConstants* Icon);

Put

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

object

A SftDirectory object.

Defines the mouse pointer used.

IconValueDescription
sftDefault0(Default)
sftArrow1Arrow
sftCross2Cross
sftIBeam3IBeam
sftIcon4Icon (Obsolete)
sftSize5Size
sftSizeNESW6Size NW SW
sftSizeNS7Size N S
sftSizeNWSE8Size NW SE
sftSizeWE9Size W E
sftUpArrow10Up Arrow
sftHourglass11Hourglass
sftNoDrop12No Drop
sftArrowHourglass13Arrow and Hourglass
sftArrowQuestion14Arrow and Question Mark
sftSizeAll15Size All
sftCustom99Custom icon (defined using the MouseIcon property)

Comments

The MousePointer property defines the mouse pointer used when the mouse cursor is over a SftDirectory control.

Examples

VB.NET

Dim Ic As Icon
Ic = New Icon("C:\path-to-icon\youricon.ico")
AxSftDirectory1.MouseIconH = Ic.Handle.ToInt32()
AxSftDirectory1.MousePointer = SftMousePointerConstants.sftCustom

VB6

' 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 SftDirectory1.MouseIcon = Picture1.Picture
SftDirectory1.MousePointer = sftCustom

C#

Icon Ic = new Icon(@"C:\path-to-icon\youricon.ico");
axSftDirectory1.MouseIconH = (int) Ic.Handle;
axSftDirectory1.MousePointer = SftMousePointerConstants.sftCustom;

C++

ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown();
HICON hIcon = LoadIcon(NULL, MAKEINTRESOURCE(IDI_WINLOGO));
vDir1->put_MouseIconH((OLE_HANDLE)hIcon);
vDir1->put_MousePointer(sftCustom);

See Also SftDirectory Object | Object Hierarchy


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