calfee.dfm
来自「C++ Builder数据库开发经典案例解析 示例程序都是在C++ Build」· DFM 代码 · 共 370 行
DFM
370 行
object fmCalFee: TfmCalFee
Left = 192
Top = 107
Width = 676
Height = 462
Caption = #38376#35786#21010#20215#31649#29702
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
FormStyle = fsMDIChild
OldCreateOrder = False
Position = poDefault
Visible = True
OnClose = FormClose
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 0
Width = 668
Height = 73
Align = alTop
TabOrder = 0
object Label1: TLabel
Left = 32
Top = 32
Width = 49
Height = 13
AutoSize = False
Caption = #38376#35786#21495
end
object Label2: TLabel
Left = 232
Top = 32
Width = 33
Height = 13
AutoSize = False
Caption = #22995#21517
end
object Label3: TLabel
Left = 368
Top = 32
Width = 33
Height = 13
AutoSize = False
Caption = #24615#21035
end
object ComboBox1: TComboBox
Left = 75
Top = 28
Width = 113
Height = 21
ItemHeight = 13
TabOrder = 0
Text = 'ComboBox1'
OnDropDown = ComboBox1DropDown
end
object Edit1: TEdit
Left = 264
Top = 28
Width = 73
Height = 21
Enabled = False
TabOrder = 1
Text = 'Edit1'
end
object Edit2: TEdit
Left = 400
Top = 28
Width = 73
Height = 21
Enabled = False
TabOrder = 2
Text = 'Edit2'
end
end
object StringGrid1: TStringGrid
Left = 0
Top = 73
Width = 668
Height = 289
Align = alClient
ColCount = 7
DefaultColWidth = 70
DefaultRowHeight = 20
FixedCols = 0
RowCount = 40
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goEditing, goAlwaysShowEditor]
TabOrder = 1
OnKeyPress = StringGrid1KeyPress
OnSelectCell = StringGrid1SelectCell
end
object Panel2: TPanel
Left = 0
Top = 362
Width = 668
Height = 73
Align = alBottom
TabOrder = 2
object Label5: TLabel
Left = 24
Top = 32
Width = 49
Height = 13
AutoSize = False
Caption = #31185#23460
end
object Label6: TLabel
Left = 192
Top = 32
Width = 49
Height = 13
AutoSize = False
Caption = #21307#29983
end
object Label4: TLabel
Left = 328
Top = 32
Width = 57
Height = 13
AutoSize = False
Caption = #37329#39069#21512#35745
end
object ComboBox2: TComboBox
Left = 56
Top = 28
Width = 113
Height = 21
ItemHeight = 13
TabOrder = 0
Text = 'ComboBox2'
end
object ComboBox3: TComboBox
Left = 224
Top = 28
Width = 81
Height = 21
ItemHeight = 13
TabOrder = 1
Text = 'ComboBox3'
end
object BitBtn1: TBitBtn
Left = 488
Top = 24
Width = 75
Height = 25
Caption = #20445#23384
TabOrder = 2
OnClick = BitBtn1Click
Glyph.Data = {
DE010000424DDE01000000000000760000002800000024000000120000000100
0400000000006801000000000000000000001000000000000000000000000000
80000080000000808000800000008000800080800000C0C0C000808080000000
FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
3333333333333333333333330000333333333333333333333333F33333333333
00003333344333333333333333388F3333333333000033334224333333333333
338338F3333333330000333422224333333333333833338F3333333300003342
222224333333333383333338F3333333000034222A22224333333338F338F333
8F33333300003222A3A2224333333338F3838F338F33333300003A2A333A2224
33333338F83338F338F33333000033A33333A222433333338333338F338F3333
0000333333333A222433333333333338F338F33300003333333333A222433333
333333338F338F33000033333333333A222433333333333338F338F300003333
33333333A222433333333333338F338F00003333333333333A22433333333333
3338F38F000033333333333333A223333333333333338F830000333333333333
333A333333333333333338330000333333333333333333333333333333333333
0000}
NumGlyphs = 2
end
object BitBtn2: TBitBtn
Left = 576
Top = 24
Width = 75
Height = 25
Caption = #21462#28040
TabOrder = 3
OnClick = BitBtn2Click
Glyph.Data = {
DE010000424DDE01000000000000760000002800000024000000120000000100
0400000000006801000000000000000000001000000000000000000000000000
80000080000000808000800000008000800080800000C0C0C000808080000000
FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
333333333333333333333333000033338833333333333333333F333333333333
0000333911833333983333333388F333333F3333000033391118333911833333
38F38F333F88F33300003339111183911118333338F338F3F8338F3300003333
911118111118333338F3338F833338F3000033333911111111833333338F3338
3333F8330000333333911111183333333338F333333F83330000333333311111
8333333333338F3333383333000033333339111183333333333338F333833333
00003333339111118333333333333833338F3333000033333911181118333333
33338333338F333300003333911183911183333333383338F338F33300003333
9118333911183333338F33838F338F33000033333913333391113333338FF833
38F338F300003333333333333919333333388333338FFF830000333333333333
3333333333333333333888330000333333333333333333333333333333333333
0000}
NumGlyphs = 2
end
object Edit3: TEdit
Left = 384
Top = 28
Width = 73
Height = 21
Enabled = False
ReadOnly = True
TabOrder = 4
Text = 'Edit3'
end
end
object DBGrid1: TDBGrid
Left = 96
Top = 56
Width = 385
Height = 177
DataSource = DataSource1
TabOrder = 3
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
Visible = False
OnDblClick = DBGrid1DblClick
OnKeyUp = DBGrid1KeyUp
Columns = <
item
Expanded = False
FieldName = #32534#21495
Width = 77
Visible = True
end
item
Expanded = False
FieldName = #22995#21517
Width = 47
Visible = True
end
item
Expanded = False
FieldName = #24615#21035
Visible = True
end
item
Expanded = False
FieldName = #25346#21495#31185#23460
Width = 55
Visible = True
end
item
Expanded = False
FieldName = #36153#29992#31867#22411
Width = 53
Visible = True
end
item
Expanded = False
FieldName = #25346#21495#31867#22411
Visible = True
end
item
Expanded = False
FieldName = #25346#21495#36153#29992
Width = 53
Visible = True
end
item
Expanded = False
FieldName = #21307#29983
Width = 47
Visible = True
end
item
Expanded = False
FieldName = #26102#38388
Visible = True
end
item
Expanded = False
FieldName = #26159#21542#24050#21010#20215
Visible = True
end>
end
object DBGrid2: TDBGrid
Left = 32
Top = 136
Width = 361
Height = 169
DataSource = DataSource2
TabOrder = 4
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
Visible = False
OnDblClick = DBGrid2DblClick
OnKeyUp = DBGrid2KeyUp
Columns = <
item
Expanded = False
FieldName = #32534#21495
Width = 39
Visible = True
end
item
Expanded = False
FieldName = #21517#31216
Width = 95
Visible = True
end
item
Expanded = False
FieldName = #35268#26684
Width = 47
Visible = True
end
item
Expanded = False
FieldName = #21333#20301
Width = 36
Visible = True
end
item
Expanded = False
FieldName = #21333#20215
Width = 36
Visible = True
end
item
Expanded = False
FieldName = #25340#38899#30721
Width = 52
Visible = True
end>
end
object pQuery: TQuery
DatabaseName = 'db'
Left = 576
Top = 8
end
object Table1: TTable
Active = True
DatabaseName = 'db'
Filter = #26159#21542#24050#21010#20215'='#39#21542#39
Filtered = True
ReadOnly = True
TableName = 'dbo.'#38376#35786#25346#21495
Left = 512
Top = 8
end
object DataSource1: TDataSource
DataSet = Table1
Left = 544
Top = 8
end
object Table2: TTable
Active = True
DatabaseName = 'db'
ReadOnly = True
TableName = 'dbo.v'#25910#36153#39033#30446#21450#33647#21697
Left = 512
Top = 40
end
object DataSource2: TDataSource
DataSet = Table2
Left = 544
Top = 40
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?