Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.MouseIcon Property

Defines a custom mouse icon.

Syntax

Get

VB.NETrefPictureObj = object.MouseIcon As System.Drawing.Image
VBSet refPictureObj = object.MouseIcon As IPictureDisp
C#.NETSystem.Drawing.Image refPictureObj = object.MouseIcon;
VC++IPictureDisp* refPictureObj = object->GetMouseIcon();
CHRESULT object->get_MouseIcon(IPictureDisp** refPictureObj);

Put

VB.NETobject.let_MouseIcon(ByVal refPictureObj As System.Drawing.Image)
VBobject.MouseIcon = refPictureObj As IPictureDisp
C#.NETvoid object.let_MouseIcon(System.Drawing.Image refPictureObj);
VC++void object->PutMouseIcon(IPictureDisp* refPictureObj);
CHRESULT object->put_MouseIcon(IPictureDisp* refPictureObj);

PutRef

VB.NETobject.MouseIcon = refPictureObj As System.Drawing.Image
VBSet object.MouseIcon = refPictureObj As IPictureDisp
C#.NETSystem.Drawing.Image object.MouseIcon = refPictureObj;
VC++void object->PutRefMouseIcon(IPictureDisp* refPictureObj);
CHRESULT object->putref_MouseIcon(IPictureDisp* refPictureObj);

object

A SftDirectory object.

refPictureObj

Defines a custom mouse icon.

Comments

The MouseIcon property defines a custom mouse icon.

The MouseIcon property provides a custom icon that is used when the MousePointer property is set to sftCustom (99). This mouse pointer is displayed when the cursor is located anywhere on the control.

The MouseIconH property can be used to define a custom mouse icon using a Windows icon handle.

Using PutRef (see Syntax above) the control will use the reference to the Picture object. If the Picture object is later changed, this will also affect the image used by the control. Using Put instead causes the control to create a copy of the Picture object. If the Picture object is later changed, this will not affect the image used by the control as it uses a copy of the object. Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.

Examples

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

See Also SftDirectory Object | Object Hierarchy


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