mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-03 11:37:21 +01:00
Adds and updates grids, dbgrids topics for merges to fixes_2_2.
This commit is contained in:
parent
fb27fcd12a
commit
3313ccc17c
@ -2424,6 +2424,7 @@
|
||||
<element name="TCustomDBGrid.FSavedRecord"/>
|
||||
<element name="TCustomDBGrid.FOnGetCellHint"/>
|
||||
<element name="TCustomDBGrid.FOnRowMoved"/>
|
||||
<element name="TCustomDBGrid.FFixedRowsExtra"/>
|
||||
|
||||
<element name="TCustomDBGrid.EmptyGrid">
|
||||
<short>
|
||||
@ -2815,6 +2816,17 @@
|
||||
<short>New value for the ExtraOptions property.</short>
|
||||
</element>
|
||||
|
||||
<element name="TCustomDBGrid.SetFixedRowsExtra">
|
||||
<short>Sets the value for the FixedRowsExtra property.</short>
|
||||
<descr/>
|
||||
<seealso>
|
||||
<link id="TCustomDBGrid.FixedRowsExtra"/>
|
||||
</seealso>
|
||||
</element>
|
||||
<element name="TCustomDBGrid.SetFixedRowsExtra.AValue">
|
||||
<short>New value for the FixedRowsExtra property.</short>
|
||||
</element>
|
||||
|
||||
<element name="TCustomDBGrid.SetOptions">
|
||||
<short>
|
||||
Sets the values in the Options property.
|
||||
@ -3269,6 +3281,9 @@
|
||||
<p>
|
||||
AutoAdjustColumn uses the column definition, or the field from the linked dataset, to determine the column or field size needed for the data displayed on the control canvas. A temporary TCanvas instance is created and used to measure the text width for the column. The calculated width is stored in the inherited ColWidths property.
|
||||
</p>
|
||||
<remark>
|
||||
Columns which use the ftMemo field type do not display the content for the memo field <b>unless</b> <var>dgDisplayMemoText</var> has been included in the <var>Options</var> for the grid control.
|
||||
</remark>
|
||||
<p>
|
||||
AutoAdjustColumn is called from the DblClick method when the values goColSizing and goDblClickAutoSize have been included in the Options property.
|
||||
</p>
|
||||
@ -4838,7 +4853,9 @@
|
||||
If the control is not already focused, SetFocus is called. MouseDown signals the OnMouseDown event handler when assigned in the class instance.
|
||||
</p>
|
||||
<dl>
|
||||
<dt>Left Mouse Button</dt>
|
||||
<dt>
|
||||
Left Mouse Button (or any mouse button when dgAnyButtonCanSelect is in Options)
|
||||
</dt>
|
||||
<dd>Clears the row Selection if already selected in the grid. </dd>
|
||||
<dt>Right Mouse Button</dt>
|
||||
<dd>Toggles the selected row in the control, or opens the PopupMenu when assigned.</dd>
|
||||
@ -4867,7 +4884,7 @@
|
||||
</short>
|
||||
<descr>
|
||||
<p>
|
||||
MouseMove is an overridden procedure used to signal the OnMouseMove event handler for the grid control. MouseMove signals the OnMouseMove event handler when GridState contains the value gsSelecting, and the Dragging flag has not been set. Otherwise, the inherited MouseMove method is called in the method.
|
||||
<var>MouseMove</var> is an overridden procedure used to signal the <var>OnMouseMove</var> event handler for the grid control. It signals the OnMouseMove event handler when <var>GridState</var> contains the value <var>gsSelecting</var>, and the Dragging flag has not been set. Otherwise, the inherited <var>MouseMove</var> method is called in the method.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
@ -5093,6 +5110,25 @@
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomDBGrid.FixedRowsExtra">
|
||||
<short>Reserves additional rows in the fixed header area for the control.</short>
|
||||
<descr>
|
||||
<p>
|
||||
<var>FixedRowsExtra</var> is an <var>Integer</var> property which indicates the number of additional rows reserved at the bottom of the fixed header rows in the database grid control. The default value for the property is <b>0</b>, and reserves <b>NO</b> additional rows.
|
||||
</p>
|
||||
<p>
|
||||
Changing the value for the property causes the LayoutChanged method to be called. This may affect the linked data fields for the control and / or the automatic columns displayed on the grid control.
|
||||
</p>
|
||||
<p>
|
||||
FixedRowsExtra is used in the UpdateGridCounts method when dgTitles has been included in the Options for the control, and causes the specified number of rows to be added after the column headers row and before the data cells in the grid.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TCustomDbGrid.LayoutChanged"/>
|
||||
<link id="TCustomDbGrid.UpdateGridCounts"/>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomDBGrid.GridStatus">
|
||||
<short>
|
||||
Stores status information about operations active for the grid control.
|
||||
|
||||
@ -11219,32 +11219,109 @@
|
||||
|
||||
<element name="TCustomGrid.GridFlags">
|
||||
<short>Contains grid-specific state flags active for the control.</short>
|
||||
<descr/>
|
||||
<seealso/>
|
||||
<descr>
|
||||
<p>
|
||||
<var>GridFlags</var> is a <var>TGridFlags</var> property which contains values that indicate the state or status for the grid control or its editor. It is a set type and may contain zero (0) or more values from the <var>TGridFlagsOption</var> enumeration.
|
||||
</p>
|
||||
<p>
|
||||
Values are included in or excluded from the set as needed during execution of methods in the grid control. See TGridFlagsOption for more information about the values in the enumeration and their meanings.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TGridFlags"/>
|
||||
<link id="TGridFlagsOption"/>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomGrid.GridHeight">
|
||||
<short>Total height for all rows in the grid control.</short>
|
||||
<descr/>
|
||||
<seealso/>
|
||||
<short>Total height for all of the rows in the grid control.</short>
|
||||
<descr>
|
||||
<p>
|
||||
<var>GridHeight</var> is a read-only <var>Integer</var> property which contains the calculated height for all of the rows in the grid control. Its value is provided using the cached values stored in GCache when row or column sizes are calculated for the control.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TCustomGrid.GridWidth"/>
|
||||
<link id="TCustomGrid.GCache"/>
|
||||
<link id="TCustomGrid.VisualChange"/>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomGrid.GridLineColor">
|
||||
<short>Color used for grid lines.</short>
|
||||
<short>Color used for the grid lines on the control.</short>
|
||||
<descr>
|
||||
<p>
|
||||
<var>GridLineColor</var> is a <var>TColor</var> property with the color used to draw the grid lines between rows and columns on the control. The default value for the property is <var>clSilver</var>. Changing the value for the property causes the grid control to be redrawn.
|
||||
</p>
|
||||
<p>
|
||||
GridLineColor is used in the <var>DrawCellGrid</var> method to draw the lines around non-fixed cells when <var>GridLineWidth</var> has a non-zero value.
|
||||
</p>
|
||||
<p>
|
||||
Use <var>FixedGridLineColor</var> to set the color used to draw grid lines around fixed rows and columns on the control.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TCustomGrid.DrawCellGrid"/>
|
||||
<link id="TCustomGrid.GridLineWidth"/>
|
||||
<link id="TCustomGrid.GridLineStyle"/>
|
||||
<link id="TCustomGrid.FixedGridLineColor"/>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomGrid.GridLineStyle">
|
||||
<short>Style used to draw grid lines.</short>
|
||||
<short>Style used to draw the grid lines on the control.</short>
|
||||
<descr>
|
||||
<p>
|
||||
<var>GridLineStyle</var> is a <var>TPenStyle</var> property with the pen drawing style used to draw grid lines on the control. The default value for the property is psSolid. Changing the value for the property causes the grid control to be redrawn.
|
||||
</p>
|
||||
<p>
|
||||
GridLineStyle, GridLineWidth, GridLineColor, and FixedGridLineColor are used in the DrawCellGrid method when GridLineWidth is set to a positive non-zero value.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TCustomGrid.DrawCellGrid"/>
|
||||
<link id="TCustomGrid.FixedGridLineColor"/>
|
||||
<link id="TCustomGrid.GridLineColor"/>
|
||||
<link id="TCustomGrid.GridLineWidth"/>
|
||||
<link id="#lcl.graphics.TCanvas.Pen">TCanvas.Pen</link>
|
||||
<link id="#lcl.graphics.TPen.Style">TPen.Style</link>
|
||||
<link id="#lcl.graphics.TPenStyle">TPenStyle</link>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomGrid.GridLineWidth">
|
||||
<short>Width (thickness) for grid lines.</short>
|
||||
<short>Width (thickness) for grid lines drawn on the control.</short>
|
||||
<descr>
|
||||
<p>
|
||||
<var>GridLineWidth</var> is an <var>Integer</var> property which contains the thickness for the grid lines drawn on the control.
|
||||
</p>
|
||||
<p>
|
||||
The default value for the property is 1, and causes a single pixel to be used when drawing grid lines. Changing the value for the property causes the grid control to be redrawn.
|
||||
</p>
|
||||
<p>
|
||||
GridLineWidth is used in the <var>DrawCellGrid</var> method when grid lines are drawn for both fixed and non-fixed cells. Set GridLineWidth to <b>0</b> to suppress drawing of grid lines on the control.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TCustomGrid.DrawCellGrid"/>
|
||||
<link id="TCustomGrid.GridLineStyle"/>
|
||||
<link id="TCustomGrid.GridLineColor"/>
|
||||
<link id="TCustomGrid.FixedGridLineColor"/>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomGrid.GridWidth">
|
||||
<short>Total width for all columns in the Grid including non-visible columns.</short>
|
||||
<descr/>
|
||||
<seealso/>
|
||||
<descr>
|
||||
<p>
|
||||
<var>GridWidth</var> is a read-only Integer property which contains the calculated width for all of the columns in the grid control, including columns with the visible property set to False. Its value is provided using the cached values stored in GCache when row or column sizes are calculated for the control.
|
||||
</p>
|
||||
</descr>
|
||||
<seealso>
|
||||
<link id="TCustomGrid.GridWidth"/>
|
||||
<link id="TCustomGrid.GCache"/>
|
||||
<link id="TCustomGrid.VisualChange"/>
|
||||
</seealso>
|
||||
</element>
|
||||
|
||||
<element name="TCustomGrid.HeaderHotZones">
|
||||
@ -13746,8 +13823,6 @@
|
||||
<element name="TCustomDrawGrid.FocusColor" link="#lcl.grids.TCustomGrid.FocusColor"/>
|
||||
<element name="TCustomDrawGrid.FocusRectVisible" link="#lcl.grids.TCustomGrid.FocusRectVisible"/>
|
||||
<element name="TCustomDrawGrid.GridHeight" link="#lcl.grids.TCustomGrid.GridHeight"/>
|
||||
<element name="TCustomDrawGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
|
||||
<element name="TCustomDrawGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
|
||||
<element name="TCustomDrawGrid.GridWidth" link="#lcl.grids.TCustomGrid.GridWidth"/>
|
||||
<element name="TCustomDrawGrid.IsCellSelected" link="#lcl.grids.TCustomGrid.IsCellSelected"/>
|
||||
<element name="TCustomDrawGrid.LeftCol" link="#lcl.grids.TCustomGrid.LeftCol"/>
|
||||
@ -13780,6 +13855,8 @@
|
||||
<element name="TCustomDrawGrid.FixedRows" link="#lcl.grids.TCustomGrid.FixedRows"/>
|
||||
<element name="TCustomDrawGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
|
||||
<element name="TCustomDrawGrid.Font" link="#lcl.controls.TControl.Font"/>
|
||||
<element name="TCustomDrawGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
|
||||
<element name="TCustomDrawGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
|
||||
<element name="TCustomDrawGrid.GridLineWidth" link="#lcl.grids.TCustomGrid.GridLineWidth" />
|
||||
<element name="TCustomDrawGrid.Options" link="#lcl.grids.TCustomGrid.Options"/>
|
||||
<element name="TCustomDrawGrid.Options2" link="#lcl.grids.TCustomGrid.Options2"/>
|
||||
@ -13977,6 +14054,8 @@
|
||||
<element name="TDrawGrid.FixedRows" link="#lcl.grids.TCustomGrid.FixedRows"/>
|
||||
<element name="TDrawGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
|
||||
<element name="TDrawGrid.Font" link="#lcl.controls.TControl.Font"/>
|
||||
<element name="TDrawGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
|
||||
<element name="TDrawGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
|
||||
<element name="TDrawGrid.GridLineWidth" link="#lcl.grids.TCustomGrid.GridLineWidth"/>
|
||||
<element name="TDrawGrid.HeaderHotZones" link="#lcl.grids.TCustomGrid.HeaderHotZones"/>
|
||||
<element name="TDrawGrid.HeaderPushZones" link="#lcl.grids.TCustomGrid.HeaderPushZones"/>
|
||||
@ -15260,6 +15339,8 @@
|
||||
<element name="TStringGrid.FixedRows" link="#lcl.grids.TCustomGrid.FixedRows"/>
|
||||
<element name="TStringGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
|
||||
<element name="TStringGrid.Font" link="#lcl.controls.TControl.Font"/>
|
||||
<element name="TStringGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
|
||||
<element name="TStringGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
|
||||
<element name="TStringGrid.GridLineWidth" link="#lcl.grids.TCustomGrid.GridLineWidth"/>
|
||||
<element name="TStringGrid.HeaderHotZones" link="#lcl.grids.TCustomGrid.HeaderHotZones"/>
|
||||
<element name="TStringGrid.HeaderPushZones" link="#lcl.grids.TCustomGrid.HeaderPushZones"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user