Hide

SftButton/OCX 3.0 - Button Control

Display
Print

OLEDropMode Property, SftButton Object

Defines OLE drop support.

Syntax

Get

VB.NETMode = object.OLEDropMode As SftButtonOLEDropModeConstants
VBMode = object.OLEDropMode As SftButtonOLEDropModeConstants
C#.NETSftButtonOLEDropModeConstants Mode = object.OLEDropMode;
VC++enum SftButtonOLEDropModeConstants Mode = object->OLEDropMode;
enum SftButtonOLEDropModeConstants Mode = object->GetOLEDropMode();
CHRESULT object->get_OLEDropMode(enum SftButtonOLEDropModeConstants* Mode);

Put

VB.NETobject.OLEDropMode = Mode As SftButtonOLEDropModeConstants
VBobject.OLEDropMode = Mode As SftButtonOLEDropModeConstants
C#.NETSftButtonOLEDropModeConstants object.OLEDropMode = Mode;
VC++enum SftButtonOLEDropModeConstants object->OLEDropMode = Mode;
void object->PutOLEDropMode(enum SftButtonOLEDropModeConstants Mode);
CHRESULT object->put_OLEDropMode(enum SftButtonOLEDropModeConstants Mode);

object

A SftButton object.

Mode

Defines whether the control can act as an OLE drop target.

NameValueDescription
OLEDropSftButtonNone0The control is not a valid drop target.
OLEDropSftButtonManual1The control is a valid drop target and triggers the OLE drop events, allowing the application to handle the OLE drop operation.

Comments

The OLEDropMode property defines OLE drop support.

If the control is a valid drop target (OLEDropSftButtonManual), the events OLEDragOver and OLEDragDrop occur when an item is dragged over the control or when an item is dropped.

Examples

VB.NET

    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
    AxSftButton1.BackColorFocus = SystemColors.Control

VB6

    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
    SftButton1.BackColorFocus = vbButtonFace

C#

    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;
    axSftButton1.BackColorFocus = SystemColors.Control;

C++

    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));
    m_vButton->put_BackColorFocus(COLOR_BTNFACE|0x80000000L);

See Also SftButton Object | Object Hierarchy


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