SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the mouse pointer used.
Get
VB.NET | Icon = object.MousePointer As SftMousePointerConstants |
VB | Icon = object.MousePointer As SftMousePointerConstants |
C#.NET | SftMousePointerConstants Icon = object.MousePointer; |
VC++ | enum SftMousePointerConstants Icon = object->MousePointer; enum SftMousePointerConstants Icon = object->GetMousePointer(); |
C | HRESULT object->get_MousePointer(enum SftMousePointerConstants* Icon); |
Put
VB.NET | object.MousePointer = Icon As SftMousePointerConstants |
VB | object.MousePointer = Icon As SftMousePointerConstants |
C#.NET | SftMousePointerConstants object.MousePointer = Icon; |
VC++ | enum SftMousePointerConstants object->MousePointer = Icon; void object->PutMousePointer(enum SftMousePointerConstants Icon); |
C | HRESULT object->put_MousePointer(enum SftMousePointerConstants Icon); |
object
Defines the mouse pointer used.
Icon | Value | Description |
---|---|---|
sftDefault | 0 | (Default) |
sftArrow | 1 | Arrow |
sftCross | 2 | Cross |
sftIBeam | 3 | IBeam |
sftIcon | 4 | Icon (Obsolete) |
sftSize | 5 | Size |
sftSizeNESW | 6 | Size NW SW |
sftSizeNS | 7 | Size N S |
sftSizeNWSE | 8 | Size NW SE |
sftSizeWE | 9 | Size W E |
sftUpArrow | 10 | Up Arrow |
sftHourglass | 11 | Hourglass |
sftNoDrop | 12 | No Drop |
sftArrowHourglass | 13 | Arrow and Hourglass |
sftArrowQuestion | 14 | Arrow and Question Mark |
sftSizeAll | 15 | Size All |
sftCustom | 99 | Custom icon (defined using the MouseIcon property) |
The MousePointer property defines the mouse pointer used when the mouse cursor is over a SftDirectory control.
Dim Ic As Icon Ic = New Icon("C:\path-to-icon\youricon.ico") AxSftDirectory1.MouseIconH = Ic.Handle.ToInt32() AxSftDirectory1.MousePointer = SftMousePointerConstants.sftCustom
' 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
Icon Ic = new Icon(@"C:\path-to-icon\youricon.ico"); axSftDirectory1.MouseIconH = (int) Ic.Handle; axSftDirectory1.MousePointer = SftMousePointerConstants.sftCustom;
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