📄 propertydescs.pas
字号:
Result := 'Use FixedRowCount to set the number of fixed rows in the grid. A fixed row is positioned at the top of the grid and stays in the same place when other rows are being scrolled. Apart from being fixed, fixed rows are the same as any ' +
'other row. You can set all the row ' +
'properties you can normally set for rows. Default, FixedRowCount is 0.' + #10#10 +
'In the TtsDBGrid, there are no fixed rows if the grid is used as a data bound control (i.e. it''s DataSource has been set).'
else if sPropertyName = 'FlatButtons' then
Result := 'Use FlatButtons to specify whether or not flat buttons should be used in the grid for combo box buttons and for normal buttons. Flat buttons are buttons that are displayed without a 3D border when the mouse is not over the button. ' +
'As soon as the mouse moves over the button, ' +
'a flat button ''pops up'' and is displayed as a normal 3D button. If FlatButtons is false, buttons are always displayed in 3D, if FlatButtons is True buttons are displayed flat as long as the mouse is not over the button. Default, FlatButtons is True.'
else if sPropertyName = 'FocusColor' then
Result := 'Use FocusColor to set the background color of the grid''s focus rect. Default, FocusColor is clHighlight.' + #10#10 +
'See FocusBorder and FocusFontColor for customizing the focus rect''s border and font color.'
else if sPropertyName = 'FocusFontColor' then
Result := 'Use FocusFontColor to set the font color of the grid''s focus rect. Default, FocusFontColor is clHighlightText.' + #10#10 +
'See FocusBorder and FocusColor for customizing the focus rect''s border and background color.'
else if sPropertyName = 'GridLines' then
Result := 'Use GridLines to set horizontal and vertical grid lines visible or invisible. The color of the lines is specified by the LineColor. Default, GridLines is glBoth.' + #10#10 +
'GridLines can take the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'glNone No lines are drawn in the grid.' + #10 +
'glVertLines Only vertical lines are drawn.' + #10 +
'glHorzLines Only horizontal lines are drawn' + #10 +
'glBoth Both horizontal and vertical lines are drawn'
else if sPropertyName = 'GridMode' then
Result := 'Use GridMode to specify the operating mode of the grid, which can either editing, browsing or as a listbox. Default, the value is gmEdit.' + #10#10 +
'GridMode can take the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'gmListBox The grid operates as a listbox. Editing is not allowed. There is no CurrentCell available and the user cannot edit the cells. ' +
'No focus rect is displayed. (This mode is equivalent to the EditMode''s emNone).' + #10 +
'gmEdit Editing is allowed. CurrentCell indicates the cell that has the focus and can be edited.' + #10 +
'gmEditInsert Same as emEdit. Furthermore, the insert row is visible as the last row of the grid.' + #10 +
'gmBrowse The user can navigate through the grid on a cell by cell basis. No editong is allowed. A focus rect indicates the current position in the grid.'
else if sPropertyName = 'Heading3D' then
Result := 'Use Heading3D to set display of the heading and the rowbar. When the heading is in 3D-Mode, all the cells in the heading are drawn like a 3-dimensional button. Default, the value is true.'
else if sPropertyName = 'HeadingButton' then
Result := 'Use HeadingButton to set the heading button type for all columns of the grid. You can override the button type for individual columns by setting a column''s HeadingButton property. ' +
'Clicking on a heading button generates the OnHeadingClick, OnHeadingDown and OnHeadingUp events. Default, the value of HeadingButton is hbNone.' + #10#10 +
'You can include an accelerator key for a HeadingButton by preceding one of the characters in the heading with an ''&''. Pressing the accelerator key activates the grid''s OnHeadingClick event.' + #10#10 +
'HeadingButton can take one of following values:' + #10#10 +
'Value Meaning' + #10#10 +
'hbCell The complete heading is used as a button. You can no longer select the column by simply clicking in the heading. You can still use the Ctrl and Shift keys in combination with the mouse to select columns.' + #10 +
'hbButton A separate button is placed inside the heading. Only the part where the button is placed behaves as a button. This allows normal grid behaviour in combination with a heading button.' + #10 +
'hbNone No heading button.'
else if sPropertyName = 'HeadingColor' then
Result := 'Use HeadingColor to set the color of the heading and the rowbar. When HeadingColor is clNone, the color of the heading is the same as the grid''s color if Heading3D is false and clBtnFace if Heading3D is true. Default, HeadingColor is clBtnFace.'
else if sPropertyName = 'HeadingFont' then
Result := 'HeadingFont is the font used as the default font for the heading text of all columns in the grid. Initially, the HeadingFont is the same as the grid''s Font.' +
'For each column you can override this default HeadingFont by setting the column''s HeadingFont.'
else if sPropertyName = 'HeadingHeight' then
Result := 'Use HeadingHeight to retrieve and set the height of the heading. Default, the value is 15.'
else if sPropertyName = 'HeadingHorzAlignment' then
Result := 'Use HeadingHorzAlignment to set the default heading horizontal alignment for all columns in the grid. You can override this default alignment by setting the column''s HeadingHorzAlignment. ' +
'Default, HeadingHorzAlignment is htaDefault.' + #10#10 +
'HeadingHorzAlignment can be one of the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'htaDefault Use the grid''s default HorzAlignment.' + #10 +
'htaLeft Align text to the left.' + #10 +
'htaCenter Center text horizontally.' + #10 +
'htaRight Align text to the right.'
else if sPropertyName = 'HeadingOn' then
Result := 'Use HeadingOn to turn the heading on or off. Default, the value is true.'
else if sPropertyName = 'HeadingParentFont' then
Result := ''
else if sPropertyName = 'HeadingVertAlignment' then
Result := 'Use HeadingVertAlignment to set the default heading vertical alignment for all columns in the grid. You can override this default alignment by setting the column''s HeadingVertAlignment. ' +
'Default, HeadingVertAlignment is vtaDefault.' + #10#10 +
'HeadingVertAlignment can be one of the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'vtaDefault Use the grid''s default VertAlignment.' + #10 +
'vtaTop Align text to the top.' + #10 +
'vtaCenter Center text vertically.' + #10 +
'vtaBottom Align text to the bottom.'
else if sPropertyName = 'HeadingWordWrap' then
Result := 'Use HeadingWordWrap to set the default word wrapping of the heading text for all the columns of the grid. If word wrapping is on, text in headings will be displayed as multiple line text ' +
'if the HeadingHeight is higher than a single line. If word wrapping is off, text will always be displayed as single line text, regardless of the HeadingHeight. Setting HeadingWordWrap to ' +
'wwDefault corresponds to word wrapping on. The default value for WordWrap is wwDefault.' + #10#10 +
'You can override the HeadingWordWrap setting for individual columns by setting the column''s HeadingWordWrap property.' + #10#10 +
'WordWrap can take the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'wwOn Heading text is dispayed as multi line text if the HeadingHeight is high enough.' + #10 +
'wwOff Heading text is displayed as single line text.' + #10 +
'wwDefault Used to designate the default behaviour. '
else if sPropertyName = 'HorzAlignment' then
Result := 'Use HorzAlignment to set the default horizontal text alignment for all the cells in the grid. You can override this default alignment by setting the column''s HorzAlignment, ' +
'the RowHorzAlignment or CellHorzAlignment properties. Default, HorzAlignment is htaDefault.' + #10#10 +
'HorzAlignment can be one of the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'htaDefault Use the default alignment. For HorzAlignment, this reverts to left text alignment.' + #10 +
'htaLeft Align text to the left.' + #10 +
'htaCenter Center text horizontally.' + #10 +
'htaRight Align text to the right.'
else if sPropertyName = 'InactiveButtonState' then
Result := 'Use InactiveButtonState to specify how buttons in the grid should be displayed when they are inactive. A button is inactive when the button has not been clicked, the mouse is not ' +
'over the button and the cell containing the button is not the current cell. To enable the display of buttons in a column, set the ButtonType of a column to btCombo or btNormal. ' +
'Default, InactiveButtonState is ibsBackGround.' + #10#10 +
'InactiveButtonState can take the following values:' + #10#10 +
'Value Meaning' + #10#10 +
'ibsBackGround A button is shown in the cells. Depending on the value of FlatButtons, buttons are drawn either flat or as a normal button. When buttons are drawn flat, ' +
'the button comes up when you move the mouse over the button.' + #10 +
'ibsPicture Only the bitmap that is normally drawn inside the button is shown in the cells. When you move the mouse over the button, the full button is drawn.' + #10 +
'ibsNone Initially, no buttons are visible. Only when you move the mouse over the button position will the button be displayed.'
else if sPropertyName = 'Is3D' then
Result := 'Use Is3D to specify whether all the cells in the grid should be drawn in 3D or not. Default, Is3D is false.'
else if sPropertyName = 'KeepAspectRatio' then
Result := 'Use KeepAspectRatio to specify if the aspect ratio of pictures should be maintained when being drawn in cells or not. You can change KeepAspectRatio 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. KeepAspectRatio only applies to cells of ' +
'ControlType ctPicture. Default, KeepAspectRatio is False.' + #10#10 +
'KeepAspectRatio specifies the default behaviour for maintaining the aspect ratio for pictures in the grid. The aspect ratio can also be set for individual columns, cells ' +
'and rows using the column KeepAspectRatio, RowKeepAspectRatio and CellKeepAspectRatio properties.'
else if sPropertyName = 'LineColor' then
Result := 'Use LineColor to specify the color of the grid lines. All grid lines, horizontal as well as vertical, will be displayed in this color. Grid lines can be turned on or off with the GridLines property.'
else if sPropertyName = 'PrintCols' then
Result := 'Use the PrintCols property to indicate how many of the columns of the grid should be printed on the report. The default is zero indicating that all columns should be printed. ' +
'Sinced the report will be squeezed into one page wide, it is sometimes preferred to limit the number of columns printed. Changing the PrintOrientation will also determine how wide ' +
'the report will be and how many columns can adequately be placed onto the page.'
else if sPropertyName = 'PrintWithGridFormat' then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -