📄 uasg33.dfm
字号:
object Form1: TForm1
Left = 371
Top = 140
Width = 720
Height = 508
Caption = 'TAdvStringGrid with TatPascalScripter demo'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 8
Top = 40
Width = 28
Height = 13
Caption = 'Grid 1'
end
object Label2: TLabel
Left = 8
Top = 240
Width = 28
Height = 13
Caption = 'Grid 2'
end
object Label3: TLabel
Left = 368
Top = 240
Width = 28
Height = 13
Caption = 'Grid 3'
end
object Label4: TLabel
Left = 368
Top = 40
Width = 27
Height = 13
Caption = 'Script'
end
object Memo1: TMemo
Left = 368
Top = 56
Width = 337
Height = 177
Lines.Strings = (
'{ This sample script fills 2 grids with random values }'
'{ The third grid is filled with the max. values of the first 2 g' +
'rids }'
'{ With a FindFirst, the maximum value is located. }'
'{ Grid contents are saved to a CSV file }'
''
'program MyGridScript'
'begin'
' Grid1.RowCount := 10;'
' Grid2.RowCount := 10;'
' Grid.RowCount := 10;'
' Grid1.RandomFill(False,500);'
' Grid2.RandomFill(False,500);'
' Grid1.AutoNumberCol(0);'
' Grid2.AutoNumberCol(0);'
' Grid1.AutoNumberRow(0);'
' Grid2.AutoNumberRow(0);'
' m := 0;'
' { fill grid3 with max. values of grid1 and grid2 }'
' for i:=1 to Grid1.ColCount-1 do'
' for j:=1 to Grid1.RowCount-1 do'
' begin'
' m1:=Grid1.Ints(i,j);'
' m2:=Grid2.Ints(i,j);'
' if m1>m2 then '
' Grid.SetInts(i,j,m1)'
' else'
' Grid.SetInts(i,j,m2);'
' if m1>m then m:=m1;'
' if m2>m then m:=m2;'
' end;'
' { goto the max. value }'
' FindPar := 0;'
' FindPar := Grid.Include(FindPar,fnAutoGoto);'
' FindPar := Grid.Include(FindPar,fnMatchFull);'
' s := IntToStr(m);'
' Grid.FindFirst(s,FindPar);'
' Grid.SaveFixedCells:=False;'
' Grid.SetDelimiter('#39';'#39');'
' Grid.SaveToCSV('#39'results.csv'#39');'
'end')
ScrollBars = ssVertical
TabOrder = 0
end
object Grid1: TAdvStringGrid
Left = 8
Top = 56
Width = 337
Height = 177
Cursor = crDefault
ColCount = 5
DefaultRowHeight = 21
DefaultDrawing = False
FixedCols = 1
RowCount = 5
FixedRows = 1
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
GridLineWidth = 1
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goDrawFocusSelected]
ParentFont = False
TabOrder = 1
GridLineColor = clSilver
ActiveCellShow = False
ActiveCellFont.Charset = DEFAULT_CHARSET
ActiveCellFont.Color = clWindowText
ActiveCellFont.Height = -11
ActiveCellFont.Name = 'MS Sans Serif'
ActiveCellFont.Style = []
ActiveCellColor = clGray
Bands.PrimaryColor = clInfoBk
Bands.PrimaryLength = 1
Bands.SecondaryColor = clWindow
Bands.SecondaryLength = 1
Bands.Print = False
AutoNumAlign = False
AutoSize = False
VAlignment = vtaTop
EnhTextSize = False
EnhRowColMove = False
SizeWithForm = False
Multilinecells = False
DragDropSettings.OleAcceptFiles = True
DragDropSettings.OleAcceptText = True
SortSettings.AutoColumnMerge = False
SortSettings.Column = 0
SortSettings.Show = False
SortSettings.IndexShow = False
SortSettings.Full = True
SortSettings.SingleColumn = False
SortSettings.IgnoreBlanks = False
SortSettings.BlankPos = blFirst
SortSettings.AutoFormat = True
SortSettings.Direction = sdAscending
SortSettings.FixedCols = False
SortSettings.NormalCellsOnly = False
SortSettings.Row = 0
FloatingFooter.Color = clBtnFace
FloatingFooter.Column = 0
FloatingFooter.FooterStyle = fsFixedLastRow
FloatingFooter.Visible = False
ControlLook.Color = clBlack
ControlLook.CheckSize = 15
ControlLook.RadioSize = 10
ControlLook.ControlStyle = csClassic
ControlLook.FlatButton = False
EnableBlink = False
EnableHTML = True
EnableWheel = True
Flat = False
HintColor = clYellow
SelectionColor = clHighlight
SelectionTextColor = clHighlightText
SelectionRectangle = False
SelectionResizer = False
SelectionRTFKeep = False
HintShowCells = False
HintShowLargeText = False
HintShowSizing = False
PrintSettings.FooterSize = 0
PrintSettings.HeaderSize = 0
PrintSettings.Time = ppNone
PrintSettings.Date = ppNone
PrintSettings.DateFormat = 'dd/mm/yyyy'
PrintSettings.PageNr = ppNone
PrintSettings.Title = ppNone
PrintSettings.Font.Charset = DEFAULT_CHARSET
PrintSettings.Font.Color = clWindowText
PrintSettings.Font.Height = -11
PrintSettings.Font.Name = 'MS Sans Serif'
PrintSettings.Font.Style = []
PrintSettings.HeaderFont.Charset = DEFAULT_CHARSET
PrintSettings.HeaderFont.Color = clWindowText
PrintSettings.HeaderFont.Height = -11
PrintSettings.HeaderFont.Name = 'MS Sans Serif'
PrintSettings.HeaderFont.Style = []
PrintSettings.FooterFont.Charset = DEFAULT_CHARSET
PrintSettings.FooterFont.Color = clWindowText
PrintSettings.FooterFont.Height = -11
PrintSettings.FooterFont.Name = 'MS Sans Serif'
PrintSettings.FooterFont.Style = []
PrintSettings.Borders = pbNoborder
PrintSettings.BorderStyle = psSolid
PrintSettings.Centered = False
PrintSettings.RepeatFixedRows = False
PrintSettings.RepeatFixedCols = False
PrintSettings.LeftSize = 0
PrintSettings.RightSize = 0
PrintSettings.ColumnSpacing = 0
PrintSettings.RowSpacing = 0
PrintSettings.TitleSpacing = 0
PrintSettings.Orientation = poPortrait
PrintSettings.PageNumberOffset = 0
PrintSettings.MaxPagesOffset = 0
PrintSettings.FixedWidth = 0
PrintSettings.FixedHeight = 0
PrintSettings.UseFixedHeight = False
PrintSettings.UseFixedWidth = False
PrintSettings.FitToPage = fpNever
PrintSettings.PageNumSep = '/'
PrintSettings.NoAutoSize = False
PrintSettings.NoAutoSizeRow = False
PrintSettings.PrintGraphics = False
HTMLSettings.Width = 100
HTMLSettings.XHTML = False
Navigation.AdvanceDirection = adLeftRight
Navigation.AllowClipboardRowGrow = True
Navigation.AllowClipboardColGrow = True
Navigation.InsertPosition = pInsertBefore
Navigation.CopyHTMLTagsToClipboard = True
Navigation.HomeEndKey = heFirstLastColumn
ColumnSize.Location = clRegistry
CellNode.Color = clSilver
CellNode.NodeColor = clBlack
CellNode.ShowTree = False
MaxEditLength = 0
IntelliPan = ipVertical
URLColor = clBlue
URLShow = False
URLFull = False
URLEdit = False
ScrollType = ssNormal
ScrollColor = clNone
ScrollWidth = 16
ScrollSynch = False
ScrollProportional = False
ScrollHints = shNone
OemConvert = False
FixedFooters = 0
FixedRightCols = 0
FixedColWidth = 64
FixedRowHeight = 21
FixedFont.Charset = DEFAULT_CHARSET
FixedFont.Color = clWindowText
FixedFont.Height = -11
FixedFont.Name = 'MS Sans Serif'
FixedFont.Style = []
FixedAsButtons = False
FloatFormat = '%.2f'
IntegralHeight = False
WordWrap = False
Lookup = False
LookupCaseSensitive = False
LookupHistory = False
BackGround.Top = 0
BackGround.Left = 0
BackGround.Display = bdTile
BackGround.Cells = bcNormal
Filter = <>
ColWidths = (
64
64
64
64
64)
RowHeights = (
21
21
21
21
21)
end
object Button1: TButton
Left = 368
Top = 8
Width = 75
Height = 25
Caption = 'Execute'
TabOrder = 2
OnClick = Button1Click
end
object Grid2: TAdvStringGrid
Left = 8
Top = 256
Width = 337
Height = 217
Cursor = crDefault
ColCount = 5
DefaultRowHeight = 21
DefaultDrawing = False
FixedCols = 1
RowCount = 5
FixedRows = 1
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
GridLineWidth = 1
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goDrawFocusSelected]
ParentFont = False
TabOrder = 3
GridLineColor = clSilver
ActiveCellShow = False
ActiveCellFont.Charset = DEFAULT_CHARSET
ActiveCellFont.Color = clWindowText
ActiveCellFont.Height = -11
ActiveCellFont.Name = 'MS Sans Serif'
ActiveCellFont.Style = []
ActiveCellColor = clGray
Bands.PrimaryColor = clInfoBk
Bands.PrimaryLength = 1
Bands.SecondaryColor = clWindow
Bands.SecondaryLength = 1
Bands.Print = False
AutoNumAlign = False
AutoSize = False
VAlignment = vtaTop
EnhTextSize = False
EnhRowColMove = False
SizeWithForm = False
Multilinecells = False
DragDropSettings.OleAcceptFiles = True
DragDropSettings.OleAcceptText = True
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -