📄 propertydescs.pas
字号:
'See SelectionFontColor for setting the selection font color.'
else if sPropertyName = 'SelectionFontColor' then
Result := 'SelectionFontColor sets the font color used for highlighting column, row and cell selections in the grid. Default, SelectionFontColor is clHighlightText.' + #10#10 +
'Selections can be displayed in the grid by either highlighting them using the SelectionColor and SelectionFontColor, or by inverting the colors of the items as they appear on the screen. ' +
'Which of the two is used is determined by the SelectionType property. When SelectionType is sltColor, the SelectionColor and SelectionFontColor are used, if SelectionType is sltInvert or ' +
'sltDefault, inverting is used. Using inverted colors to highlight selections is significantly faster than using customized selection colors.' + #10#10 +
'SelectionFontColor only applies if SelectionType is sltColor.' + #10#10 +
'See SelectionColor for setting the selection background color.'
else if sPropertyName = 'SelectionType' then
Result := 'Selections can be displayed in the grid by either highlighting them using the SelectionColor and SelectionFontColor, or by inverting the colors of the items as they appear on the screen. ' +
'When SelectionType is sltColor, the SelectionColor and SelectionFontColor are used, if SelectionType is sltInvert or sltDefault, inverting is used. Using inverted colors to highlight ' +
'selections is significantly faster than using customized selection colors. Default, SelectionType is sltDefault.' + #10#10 +
'For enabling column, row and cell selections, see the ColSelectMode, RowSelectMode, and CellSelectMode properties.' + #10#10 +
'SelectionType can take on the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'sltDefault The default highlight method is used. For the TtsGrid and TtsDBGrid, this defaults to sltInvert. For the grids used in the combo box, ' +
'the TtsComboGrid and TtsDBComboGrid, this defaults to their parent grid''s SelectionType.' + #10 +
'sltInvert Inverting pixel colors is used for highlighting.' + #10 +
'sltColor SelectionColor and SelectionFontColor are used for highlighting column, row and cell selections.'
else if sPropertyName = 'ShrinkPicture' then
Result := 'Use ShrinkPicture to specify if pictures should be drawn shrunk in cells or not. You can change ShrinkPicture in the OnCellLoaded event to customize the drawing for individual cells, ' +
'or you can set it in advance to have all pictures drawn in the same way. ShrinkPicture only applies to cells of ControlType ctPicture. Default, ShrinkPicture is True.' + #10#10 +
'ShrinkPicture specifies the default shrinking behaviour for pictures in the grid. Picture shrinking can also be set for individual columns, cells and rows using the column ShrinkPicture, ' +
'RowShrinkPicture and CellShrinkPicture properties.'
else if sPropertyName = 'SkipReadOnly' then
Result := 'When SkipReadOnly is True, readonly cells, rows and columns will be skipped when the user navigates through the grid with the Tab and arrow keys. In addition, a readonly column will not ' +
'receive the focus when clicked on if SkipReadOnly is True. Readonly rows will receive the focus. If SkipReadOnly is False, no skipping takes place. Default, SkipReadOnly is True.' + #10#10 +
'Cells, rows and columns can be set readonly by setting the CellReadOnly, RowReadOnly and column ReadOnly properties.' + #10#10 +
'When the GridMode is gmBrowse, the SkipReadOnly still applies. Only those cells, rows and columns are regarded as readonly for which it has been explicitly set with the above readonly properties.'
else if sPropertyName = 'SpinButtonHeight' then
Result := ''
else if sPropertyName = 'SpinButtonWidth' then
Result := ''
else if sPropertyName = 'SpinRepeatDelay' then
Result := 'SpinRepeatDelay specifies the delay, in milliseconds, between consecutive repeats of the the spin edit control. When a spin button is held down and the auto repeat is turned on, the spin edit ' +
'waits SpinRepeatDelay milliseconds before the next repeat. On each repeat, the OnSpinRepeat event is activated. Default, SpinStartDelay is 500.' + #10#10 +
'To set the inital delay before the spin edit start repeating, set the SpinStartDelay property.' + #10#10 +
'SpinRepeatDelay only applies when spin buttons are turned on at the column, row or cell level, and the corresponding auto repeat option is turned on for the spin edit. To enable a spin edit, ' +
'set the ButtonType for the row, column or cell to btVertSpin or btHorzSpin. To enable auto repeat, include the auto repeat option in the SpinOptions property for the row, column or cell.'
else if sPropertyName = 'SpinStartDelay' then
Result := 'SpinStartDelay specifies the initial delay, in milliseconds, for the spin edit control auto repeat. When a spin button is held down and the auto repeat is turned on, the spin edit waits ' +
'SpinStartDelay milliseconds before the button starts repeating. On each repeat, the OnSpinRepeat event is activated. Default, SpinStartDelay is 500.' + #10#10 +
'To set the delay between consecutive repeats, set the SpinRepeatDelay property.' + #10#10 +
'SpinStartDelay only applies when spin buttons are turned on at the column, row or cell level, and the corresponding auto repeat option is turned on for the spin edit. ' +
'To enable a spin edit, set the ButtonType for the row, column or cell to btVertSpin or btHorzSpin. To enable auto repeat, include the auto repeat option in the ' +
'SpinOptions property for the row, column or cell.'
else if sPropertyName = 'StoreData' then
Result := 'When StoreData is set to True, you can store data in the grid by assigning the values for all the grid''s cells to the Cell property. ' +
'When StoreData is False, no data can be stored in the grid. Default, StoreData is False.' + #10#10 +
'When StoreData is True, the grid takes care of storing all grid values for you, much like the TStringGrid does. To display the data in the grid, you need to pre-load the ' +
'data into it by assigning all values to their corresponding cells, using the Cell property. Changes made by the user will be saved by the grid, data will be automatically ' +
'deleted for deleted rows and columns, and the grid will allocate new space for new rows and columns as needed. All values can be set and read using the Cell property. ' +
'IF no value value has been assigned to a cell, then the Cell[Col, Row] property returns Unassigned.' + #10#10 +
'When StoreData is False, the grid does not store any data, and it operates as a virtual grid. All data should be passed to the grid via the OnCellLoaded event. ' +
'This allows you to store the data in your own data structure, and pass it to the grid when it requests for it via the OnCellLoaded event. You do not need to pre-load ' +
'all data into memory in this case, the grid will only activate the OnCellLoaded event for those cells that are actually being displayed. This is particularly usefull if ' +
'you want to display large tables in the non data-aware grid, but only want to read in a relatively small buffer of data at any one time.' + #10#10 +
'For the TtsDBGrid, StoreData only applies if it is not DataBound (i,e, no datasource is attached). In that case, it operates as above. Otherwise, StoreData is set to False, ' +
'and the data displayed is that of the attached dataset.' + #10#10 +
'When StoreData is True, or when the TtsDBGrid is databound, the OnCellLoaded event is still activated for each cell displayed on the screen, although it is not needed in that ' +
'case to actually display the data in the grid. It does give an opportunity though to format the display values if needed. See the OnCellLoaded event for more information.' + #10#10 +
'To efficiently copy data stored in one grid to another when the StoreData property is True, use the CopyData method.'
else if sPropertyName = 'StretchPicture' then
Result := 'Use StretchPicture to specify if pictures should be drawn stretched in cells or not. You can change StretchPicture in the OnCellLoaded event to customize the drawing ' +
'for individual cells, or you can set it in advance to have all pictures drawn in the same way. StretchPicture only applies to cells of ControlType ctPicture.' +
' Default, StretchPicture is True.' + #10#10 +
'StretchPicture specifies the default stretching behaviour for pictures in the grid. Picture stretching can also be set for individual columns, cells and rows using ' +
'the column StretchPicture, RowStretchPicture and CellStretchPicture properties.'
else if sPropertyName = 'TabRowWrap' then
Result := 'When the TabRowWrap property is set to true, the grid will automatically move the current cell to the first column of the next row when the user tabs to the next cell ' +
'from the last column of a row, or to the last column of the previous row when the user shift-tabs to the previous cell from the first column of a row. ' +
'If TabRowWrap is false, the grid will not tab to the next or previous row. Default, TabRowWrap is true.' + #10#10 +
'TabRowWrap affects the use of the Tab, Shift-Tab, Enter, Right-Arrow and Left-Arrow keys. Using Tab, Enter or Left-Arrow will have no effect in the ' +
'last column of a row when TabRowWrap is false. Shift-Tab and Right-Arrow will have no effect in the first column of a row when TabRowWrap is false.'
else if sPropertyName = 'ThumbTracking' then
Result := 'ThumbTracking specifies whether the contents of the grid will scroll immediately when moving the thumb of the scrollbar or only after the thumb ' +
'has been released. Default, the value is false.' + #10#10 +
'Dependency: Only functions with a TtsDbGrid when the DataSetType is dstBDE!'
else if sPropertyName = 'TransparentColor' then
Result := 'Use TransparentColor to specify which color in a picture should be replaced with the background color of the cell when drawn in the cell. ' +
'You can change TransparentColor in the OnCellLoaded event to customize the drawing for individual cells, or you can set it in advance to have all pictures drawn in ' +
'the same way. TransparentColor only applies to cells of ControlType ctPicture. Default, TransparentColor is clNone.' + #10#10 +
'Be aware that setting the TransparentColor can significantly slow down drawing operations.'
else if sPropertyName = 'VertAlignment' then
Result := 'Use VertAlignment to set the default vertical text alignment for all the cells in the grid. You can override this default alignment by setting the ' +
'column''s VertAlignment, the RowVertAlignment or CellVertAlignment properties. Default, VertAlignment is vtaDefault.' + #10#10 +
'VertAlignment can be one of the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'vtaDefault Use the default alignment. For VertAlignment, this reverts to top text alignment.' + #10 +
'vtaTop Align text to the top.' + #10 +
'vtaCenter Center text vertically.' + #10 +
'vtaBottom Align text to the bottom.'
else if sPropertyName = 'WantTabs' then
Result := 'The Tab key can be used to either tab from cell to cell in the grid or to tab to the next component on the form. If WantTabs is true, the Tab key will tab to the ' +
'next cell in the grid, if WantTabs is false it will tab out of the grid to the next component. Default, WantTabs is True.' + #10#10 +
'If you set WantTabs to false, you can still move from cell to cell in the grid by either using the Enter key or the arrow keys. The Enter key will always move ' +
'to the next cell. The arrow keys will only move to another cell if the text in the cell is fully selected or if the caret is at the end of the text.'
else if sPropertyName = 'WordWrap' then
Result := 'Use WordWrap to set the word wrapping used in the grid. If word wrapping is on, text in cells will be displayed as multiple line text if the RowHeight of the row ' +
'is higher than a single line. If word wrapping is off, text will always be displayed as single line text, regardless of the RowHeight. Setting WordWrap to wwDefault ' +
' corresponds to word wrapping on. The default value for WordWrap is wwDefault.' + #10#10 +
'You can override the WordWrap setting for individual columns, rows and cells by setting the column''s WordWrap property, the RowWordWrap property or ' +
'the CellWordWrap property.' + #10#10 +
'WordWrap can take the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'wwOn Text is dispayed as multi line text if the RowHeight is high enough.' + #10 +
'wwOff Text is displayed as single line text.'+ #10 +
'wwDefault Used to designate the default behaviour. '
else
Result := '';
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -