📄 mainform.dfm
字号:
object fmMain: TfmMain
Left = 192
Top = 180
Width = 696
Height = 480
Caption = 'Class Completion Demo'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Menu = MainMenu1
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object SynEdit1: TSynEdit
Left = 0
Top = 0
Width = 688
Height = 365
Cursor = crIBeam
Align = alClient
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Courier New'
Font.Style = []
ParentColor = False
ParentFont = False
TabOrder = 0
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -11
Gutter.Font.Name = 'Terminal'
Gutter.Font.Style = []
Highlighter = SynPasSyn1
Keystrokes = <
item
Command = ecUp
ShortCut = 38
end
item
Command = ecSelUp
ShortCut = 8230
end
item
Command = ecScrollUp
ShortCut = 16422
end
item
Command = ecDown
ShortCut = 40
end
item
Command = ecSelDown
ShortCut = 8232
end
item
Command = ecScrollDown
ShortCut = 16424
end
item
Command = ecLeft
ShortCut = 37
end
item
Command = ecSelLeft
ShortCut = 8229
end
item
Command = ecWordLeft
ShortCut = 16421
end
item
Command = ecSelWordLeft
ShortCut = 24613
end
item
Command = ecRight
ShortCut = 39
end
item
Command = ecSelRight
ShortCut = 8231
end
item
Command = ecWordRight
ShortCut = 16423
end
item
Command = ecSelWordRight
ShortCut = 24615
end
item
Command = ecPageDown
ShortCut = 34
end
item
Command = ecSelPageDown
ShortCut = 8226
end
item
Command = ecPageBottom
ShortCut = 16418
end
item
Command = ecSelPageBottom
ShortCut = 24610
end
item
Command = ecPageUp
ShortCut = 33
end
item
Command = ecSelPageUp
ShortCut = 8225
end
item
Command = ecPageTop
ShortCut = 16417
end
item
Command = ecSelPageTop
ShortCut = 24609
end
item
Command = ecLineStart
ShortCut = 36
end
item
Command = ecSelLineStart
ShortCut = 8228
end
item
Command = ecEditorTop
ShortCut = 16420
end
item
Command = ecSelEditorTop
ShortCut = 24612
end
item
Command = ecLineEnd
ShortCut = 35
end
item
Command = ecSelLineEnd
ShortCut = 8227
end
item
Command = ecEditorBottom
ShortCut = 16419
end
item
Command = ecSelEditorBottom
ShortCut = 24611
end
item
Command = ecToggleMode
ShortCut = 45
end
item
Command = ecCopy
ShortCut = 16429
end
item
Command = ecCut
ShortCut = 8238
end
item
Command = ecPaste
ShortCut = 8237
end
item
Command = ecDeleteChar
ShortCut = 46
end
item
Command = ecDeleteLastChar
ShortCut = 8
end
item
Command = ecDeleteLastChar
ShortCut = 8200
end
item
Command = ecDeleteLastWord
ShortCut = 16392
end
item
Command = ecUndo
ShortCut = 32776
end
item
Command = ecRedo
ShortCut = 40968
end
item
Command = ecLineBreak
ShortCut = 13
end
item
Command = ecLineBreak
ShortCut = 8205
end
item
Command = ecTab
ShortCut = 9
end
item
Command = ecShiftTab
ShortCut = 8201
end
item
Command = ecContextHelp
ShortCut = 16496
end
item
Command = ecSelectAll
ShortCut = 16449
end
item
Command = ecCopy
ShortCut = 16451
end
item
Command = ecPaste
ShortCut = 16470
end
item
Command = ecCut
ShortCut = 16472
end
item
Command = ecBlockIndent
ShortCut = 24649
end
item
Command = ecBlockUnindent
ShortCut = 24661
end
item
Command = ecLineBreak
ShortCut = 16461
end
item
Command = ecInsertLine
ShortCut = 16462
end
item
Command = ecDeleteWord
ShortCut = 16468
end
item
Command = ecDeleteLine
ShortCut = 16473
end
item
Command = ecDeleteEOL
ShortCut = 24665
end
item
Command = ecUndo
ShortCut = 16474
end
item
Command = ecRedo
ShortCut = 24666
end
item
Command = ecGotoMarker0
ShortCut = 16432
end
item
Command = ecGotoMarker1
ShortCut = 16433
end
item
Command = ecGotoMarker2
ShortCut = 16434
end
item
Command = ecGotoMarker3
ShortCut = 16435
end
item
Command = ecGotoMarker4
ShortCut = 16436
end
item
Command = ecGotoMarker5
ShortCut = 16437
end
item
Command = ecGotoMarker6
ShortCut = 16438
end
item
Command = ecGotoMarker7
ShortCut = 16439
end
item
Command = ecGotoMarker8
ShortCut = 16440
end
item
Command = ecGotoMarker9
ShortCut = 16441
end
item
Command = ecSetMarker0
ShortCut = 24624
end
item
Command = ecSetMarker1
ShortCut = 24625
end
item
Command = ecSetMarker2
ShortCut = 24626
end
item
Command = ecSetMarker3
ShortCut = 24627
end
item
Command = ecSetMarker4
ShortCut = 24628
end
item
Command = ecSetMarker5
ShortCut = 24629
end
item
Command = ecSetMarker6
ShortCut = 24630
end
item
Command = ecSetMarker7
ShortCut = 24631
end
item
Command = ecSetMarker8
ShortCut = 24632
end
item
Command = ecSetMarker9
ShortCut = 24633
end
item
Command = ecNormalSelect
ShortCut = 24654
end
item
Command = ecColumnSelect
ShortCut = 24643
end
item
Command = ecLineSelect
ShortCut = 24652
end
item
Command = ecMatchBracket
ShortCut = 24642
end>
Lines.Strings = (
'{ Demo to show how ClassCompletion works. Use the Main menu to e' +
'xperiment.'
''
' "Barebones Implementation" refers to the method implementation' +
' style. It is'
' valid syntax to create a method implementation with NO paramet' +
'ers when the'
' declaration includes them. This can be helpful when working wi' +
'th scripts'
' so the script user doesn'#39't have to worry about keeping the two' +
' in synch.'
''
' NOTE: ClassCompletion will fail when there are errors in previ' +
'ous classes'
' or errors in the script that prevented the incompletenes' +
's from being'
' discovered. Example, try to complete TTest2 before TTest' +
'1 using the'
' "Complete Class at Cursor" option only. It will fail. Th' +
'is is why it'
' is preferred to complete ALL classes at once. '
'}'
'type'
' TTest1 = class'
' property Name: string read FName write SetName;'
' property Tag: Integer read GetTag write SetTag;'
' end;'
''
'type'
' TTest2 = class'
' property Name: string read FName write SetName;'
' property Weight: Float read GetWeight write SetWeight;'
' end;')
end
object lbMessages: TListBox
Left = 0
Top = 365
Width = 688
Height = 69
Align = alBottom
ItemHeight = 13
TabOrder = 1
end
object SynPasSyn1: TSynPasSyn
CommentAttri.Foreground = clGreen
Left = 48
Top = 40
end
object alActions: TActionList
Left = 288
Top = 88
object actCompleteClass: TAction
Caption = 'Complete class at cursor'
OnExecute = CompleteClassesExecute
end
object actCompleteAllClasses: TAction
Caption = 'Complete all classes'
ShortCut = 24643
OnExecute = CompleteClassesExecute
end
object actSyntaxCheck: TAction
Caption = 'Syntax Check'
ShortCut = 16504
OnExecute = actSyntaxCheckExecute
end
end
object MainMenu1: TMainMenu
Left = 208
Top = 88
object ClassCompletionTest1: TMenuItem
Caption = 'ClassCompleTest'
object N2: TMenuItem
Action = actSyntaxCheck
end
object N3: TMenuItem
Caption = '-'
end
object Completeallclasses2: TMenuItem
Action = actCompleteAllClasses
end
object Completeclassatcursor1: TMenuItem
Action = actCompleteClass
end
object N1: TMenuItem
Caption = '-'
end
object miBarebones: TMenuItem
Caption = 'Barebones Implementation'
Checked = True
OnClick = miBarebonesClick
end
end
end
object DelphiWebScriptII1: TDelphiWebScriptII
Config.CompilerOptions = []
Config.MaxDataSize = 0
Config.Timeout = 0
Left = 56
Top = 112
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -