📄 main.dfm
字号:
object Form1: TForm1
Left = 639
Top = 369
AutoScroll = False
Caption = 'Multi Target demo'
ClientHeight = 305
ClientWidth = 475
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Arial'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnDestroy = FormDestroy
OnMouseMove = FormMouseMove
PixelsPerInch = 96
TextHeight = 14
object Label1: TLabel
Left = 0
Top = 0
Width = 475
Height = 48
Align = alTop
Alignment = taCenter
Caption =
'Demo of multiple controls registrered to a single drop target co' +
'mponent'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -21
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
WordWrap = True
end
object MemoLeft: TMemo
Left = 40
Top = 80
Width = 185
Height = 105
TabOrder = 0
OnMouseMove = FormMouseMove
end
object MemoRight: TMemo
Left = 248
Top = 80
Width = 193
Height = 105
TabOrder = 1
OnMouseMove = FormMouseMove
end
object CheckBoxLeft: TCheckBox
Left = 88
Top = 56
Width = 97
Height = 17
Caption = 'Drop target'
TabOrder = 2
OnClick = CheckBoxLeftClick
end
object CheckBoxRight: TCheckBox
Left = 296
Top = 56
Width = 97
Height = 17
Caption = 'Drop target'
TabOrder = 3
OnClick = CheckBoxRightClick
end
object MemoSource: TMemo
Left = 40
Top = 192
Width = 401
Height = 97
Alignment = taCenter
Lines.Strings = (
'Drag this text to one of the controls above...')
TabOrder = 4
WantReturns = False
WordWrap = False
OnMouseDown = MemoSourceMouseDown
end
object DropTextTarget1: TDropTextTarget
DragTypes = [dtCopy]
OnEnter = DropTextTarget1Enter
OnLeave = DropTextTarget1Leave
OnDrop = DropTextTarget1Drop
MultiTarget = True
Left = 224
Top = 104
end
object DropTextSource1: TDropTextSource
DragTypes = [dtCopy]
Locale = 0
Left = 224
Top = 232
end
object DropDummy1: TDropDummy
DragTypes = [dtCopy, dtMove, dtLink]
Target = Owner
Left = 224
Top = 48
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -