home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{20976770-692B-4564-84B5-CCC822AA2B7A}#1.2#0"; "CmdBtnX5.ocx"
- Begin VB.Form frmOLEDragAndDrop
- BorderStyle = 3 'Fixed Dialog
- Caption = "OLE Drag and Drop Demonstration"
- ClientHeight = 6090
- ClientLeft = 1950
- ClientTop = 1545
- ClientWidth = 6180
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Icon = "OLEDragAndDrop.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 406
- ScaleMode = 3 'Pixel
- ScaleWidth = 412
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin VB.TextBox txtDrop
- Height = 1950
- Left = 4365
- MultiLine = -1 'True
- OLEDragMode = 1 'Automatic
- OLEDropMode = 2 'Automatic
- ScrollBars = 2 'Vertical
- TabIndex = 8
- Text = "OLEDragAndDrop.frx":014A
- Top = 3960
- Width = 1680
- End
- Begin VB.CommandButton cmdDrag
- Caption = "Start Drag"
- Height = 330
- Left = 2475
- TabIndex = 5
- Top = 3285
- Width = 1140
- End
- Begin VB.Frame Frame1
- Caption = "Allowed Drag Effects:"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1095
- Left = 135
- TabIndex = 2
- Top = 2520
- Width = 2220
- Begin VB.CheckBox chkMove
- Caption = "Move"
- Height = 285
- Left = 270
- TabIndex = 4
- Top = 630
- Value = 1 'Checked
- Width = 1140
- End
- Begin VB.CheckBox chkCopy
- Caption = "Copy"
- Height = 285
- Left = 270
- TabIndex = 3
- Top = 315
- Value = 1 'Checked
- Width = 1140
- End
- End
- Begin CommandButtonXDemo.pucEventList evlOLE
- Height = 2175
- Left = 135
- TabIndex = 7
- Top = 3735
- Width = 4065
- _ExtentX = 7170
- _ExtentY = 3836
- ExitVisible = -1 'True
- End
- Begin VB.ComboBox cboOLEDropMode
- Height = 315
- ItemData = "OLEDragAndDrop.frx":019F
- Left = 135
- List = "OLEDragAndDrop.frx":01A9
- Style = 2 'Dropdown List
- TabIndex = 1
- Top = 2070
- Width = 2265
- End
- Begin CommandButtonXDemo.pucTextTip pucSimpleTip1
- Height = 780
- Left = 135
- Top = 945
- Width = 5910
- _ExtentX = 10425
- _ExtentY = 1376
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = $"OLEDragAndDrop.frx":01D1
- End
- Begin CommandButtonXCtl.CommandButtonX cmdxDemo
- Height = 1725
- Left = 3870
- TabIndex = 6
- Top = 1935
- Width = 2175
- _ExtentX = 3836
- _ExtentY = 3043
- DropDownPicture = "OLEDragAndDrop.frx":0286
- PictureAlignment= 3
- Caption = "Drop Target"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.Label lblHdr
- AutoSize = -1 'True
- Caption = "OLEDropMode:"
- Height = 195
- Left = 135
- TabIndex = 0
- Top = 1845
- Width = 1080
- End
- Begin CommandButtonXDemo.pucLogoPane LogoPane1
- Align = 1 'Align Top
- Height = 780
- Left = 0
- Top = 0
- Width = 6180
- _ExtentX = 10901
- _ExtentY = 1376
- Picture = "OLEDragAndDrop.frx":0308
- End
- Attribute VB_Name = "frmOLEDragAndDrop"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- DefInt A-Z
- Private Sub cboOLEDropMode_Click()
- cmdxDemo.OLEDropMode = cboOLEDropMode.ListIndex
- End Sub
- Private Sub cmdClose_Click()
- Unload Me
- End Sub
- Private Sub cmdDrag_Click()
- cmdxDemo.OLEDrag
- End Sub
- Private Sub cmdxDemo_OLECompleteDrag(Effect As Long)
- evlOLE.Add "OLECompleteDrag", Effect
- End Sub
- Private Sub cmdxDemo_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
- evlOLE.Add "OLEDragDrop", "{DATA}", Effect, Button, Shift, X, Y
- End Sub
- Private Sub cmdxDemo_OLEDragOver(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer)
- evlOLE.Add "OLEDragOver", "{DATA}", Effect, Button, Shift, X, Y, State
- End Sub
- Private Sub cmdxDemo_OLEGiveFeedback(Effect As Long, DefaultCursors As Boolean)
- evlOLE.Add "OLEGiveFeedback", Effect, DefaultCursors
- End Sub
- Private Sub cmdxDemo_OLESetData(Data As DataObject, DataFormat As Integer)
- evlOLE.Add "OLESetData", "{DATA}", DataFormat
- End Sub
- Private Sub cmdxDemo_OLEStartDrag(Data As DataObject, AllowedEffects As Long)
- Data.SetData "Ariad CommandButtonX Control 5", vbCFText
- If chkCopy Then
- AllowedEffects = AllowedEffects Or vbDropEffectCopy
- End If
- If chkMove Then
- AllowedEffects = AllowedEffects Or vbDropEffectMove
- End If
- evlOLE.Add "OLEStartDrag", "{DATA}", AllowedEffects
- End Sub
- Private Sub evlOLE_ExitClicked()
- Unload Me
- End Sub
- Private Sub Form_Load()
- cboOLEDropMode.ListIndex = cmdxDemo.OLEDropMode
- End Sub
-