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 OLE drag support.
Get
VB.NET | Mode = object.OLEDragMode As SftButtonOLEDragModeConstants |
VB | Mode = object.OLEDragMode As SftButtonOLEDragModeConstants |
C#.NET | SftButtonOLEDragModeConstants Mode = object.OLEDragMode; |
VC++ | enum SftButtonOLEDragModeConstants Mode = object->OLEDragMode; enum SftButtonOLEDragModeConstants Mode = object->GetOLEDragMode(); |
C | HRESULT object->get_OLEDragMode(enum SftButtonOLEDragModeConstants* Mode); |
Put
VB.NET | object.OLEDragMode = Mode As SftButtonOLEDragModeConstants |
VB | object.OLEDragMode = Mode As SftButtonOLEDragModeConstants |
C#.NET | SftButtonOLEDragModeConstants object.OLEDragMode = Mode; |
VC++ | enum SftButtonOLEDragModeConstants object->OLEDragMode = Mode; void object->PutOLEDragMode(enum SftButtonOLEDragModeConstants Mode); |
C | HRESULT object->put_OLEDragMode(enum SftButtonOLEDragModeConstants Mode); |
object
Mode
Defines whether the control is used as an OLE drag source.
Name | Value | Description |
---|---|---|
OLEDragSftButtonNone | 0 | The control cannot act as a drag source. |
OLEDragSftButtonManual | 1 | The application calls the OLEDrag method to start an OLE drag & drop operation using this control as a drag source. |
The OLEDragMode property defines OLE drag support.
Once an OLE drag & drop operation is started, the application receives the OLEStartDrag event, which is used to provide data to the DataObject.
If the OLEDragMode property is set to OLEDragSftButtonManual, the application can start an OLE drag & drop operation in response to any external event (such as the MouseDown event).
Visual Basic: The DragMode property which is automatically added to the control by Visual Basic also affects the handling of a drag & drop operation. For OLE drag & drop to be available, Visual Basic's DragMode property must be set to vbManual. Please see the Visual Basic documentation for information about the DragMode property and its drag & drop support.
AxSftButton1.Bounce = SftButtonBounceStyleConstants.bounceSftButtonYes AxSftButton1.ClickInterval = 100 AxSftButton1.DropDownDownClick = True AxSftButton1.DropDownFollows = False AxSftButton1.DropDownPressed = False AxSftButton1.DropDownToggle = False AxSftButton1.Enabled = True AxSftButton1.Follows = False AxSftButton1.OLEDragMode = SftButtonOLEDragModeConstants.OLEDragSftButtonNone AxSftButton1.OLEDropMode = SftButtonOLEDropModeConstants.OLEDropSftButtonNone AxSftButton1.RightToLeft = False AxSftButton1.Toggle = False ' Colors AxSftButton1.BackColor = SystemColors.Control AxSftButton1.BackColorStart = Color.Green AxSftButton1.BackColorEnd = Color.Blue
SftButton1.Bounce = bounceSftButtonYes SftButton1.ClickInterval = 100 SftButton1.DropDownDownClick = True SftButton1.DropDownFollows = False SftButton1.DropDownPressed = False SftButton1.DropDownToggle = False SftButton1.Enabled = True SftButton1.Follows = False SftButton1.OLEDragMode = OLEDragSftButtonNone SftButton1.OLEDropMode = OLEDropSftButtonNone SftButton1.RightToLeft = False SftButton1.Toggle = False ' Colors SftButton1.BackColor = vbButtonFace SftButton1.BackColorStart = vbGreen SftButton1.BackColorEnd = vbBlue
axSftButton1.Bounce = SftButtonBounceStyleConstants.bounceSftButtonYes; axSftButton1.ClickInterval = 100; axSftButton1.DropDownDownClick = true; axSftButton1.DropDownFollows = false; axSftButton1.DropDownPressed = false; axSftButton1.DropDownToggle = false; axSftButton1.Enabled = true; axSftButton1.Follows = false; axSftButton1.OLEDragMode = SftButtonOLEDragModeConstants.OLEDragSftButtonNone; axSftButton1.OLEDropMode = SftButtonOLEDropModeConstants.OLEDropSftButtonNone; axSftButton1.RightToLeft = false; axSftButton1.Toggle = false; // Colors axSftButton1.BackColor = SystemColors.Control; axSftButton1.BackColorStart = Color.Green; axSftButton1.BackColorEnd = Color.Blue;
m_vButton->put_Bounce(bounceSftButtonYes); m_vButton->put_ClickInterval(100); m_vButton->put_DropDownDownClick(VARIANT_TRUE); m_vButton->put_DropDownFollows(VARIANT_FALSE); m_vButton->put_DropDownPressed(VARIANT_FALSE); m_vButton->put_DropDownToggle(VARIANT_FALSE); m_vButton->put_Enabled(VARIANT_TRUE); m_vButton->put_Follows(VARIANT_FALSE); m_vButton->put_OLEDragMode(OLEDragSftButtonNone); m_vButton->put_OLEDropMode(OLEDropSftButtonNone); m_vButton->put_RightToLeft(VARIANT_FALSE); m_vButton->put_Toggle(VARIANT_FALSE); // Colors m_vButton->put_BackColor(COLOR_BTNFACE|0x80000000L); m_vButton->put_BackColorStart(RGB(0,255,0)); m_vButton->put_BackColorEnd(RGB(0,0,255));
See Also SftButton Object | Object Hierarchy