mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:39:15 +02:00
Docs: LCL/grids. Adds content to the TCustomStringGrid.SaveColumns and TStringGridStrings topics.
This commit is contained in:
parent
651303f114
commit
d97d330495
@ -8578,11 +8578,63 @@ its default value.
|
|||||||
|
|
||||||
<element name="TCustomGrid.SaveColumns">
|
<element name="TCustomGrid.SaveColumns">
|
||||||
<short>
|
<short>
|
||||||
Saves column configuration, layout, and appearance values to an XML
|
Saves column configuration, layout, and appearance to an XML configuration
|
||||||
configuration file.
|
file.
|
||||||
</short>
|
</short>
|
||||||
<descr/>
|
<descr>
|
||||||
<seealso/>
|
<p>
|
||||||
|
<var>SaveColumns</var> is a method used to store information about columns on
|
||||||
|
the grid to the specified XML configuration file. It stores information about
|
||||||
|
the configuration, layout, and appearance of Columns defined for the grid,
|
||||||
|
including:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>Columns.Count</li>
|
||||||
|
<li>Columns.Enabled</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
Information about each of the TGridColumn instances in Columns are written to
|
||||||
|
the XML configuration file, and includes the following:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>TGridColumn.Index</li>
|
||||||
|
<li>TGridColumn.Width</li>
|
||||||
|
<li>TGridColumn.MinSize</li>
|
||||||
|
<li>TGridColumn.MaxSize</li>
|
||||||
|
<li>TGridColumn.Alignment</li>
|
||||||
|
<li>TGridColumn.Layout</li>
|
||||||
|
<li>TGridColumn.ButtonStyle</li>
|
||||||
|
<li>TGridColumn.Color</li>
|
||||||
|
<li>TGridColumn.ValueChecked</li>
|
||||||
|
<li>TGridColumn.ValueUnChecked</li>
|
||||||
|
<li>TGridColumn.PickList</li>
|
||||||
|
<li>TGridColumn.SizePriority</li>
|
||||||
|
<li>TGridColumn.Font</li>
|
||||||
|
<li>TGridColumn.Title.Caption</li>
|
||||||
|
<li>TGridColumn.Title.Font</li>
|
||||||
|
<li>TGridColumn.Title.Alignment</li>
|
||||||
|
<li>TGridColumn.Title.Color</li>
|
||||||
|
<li>TGridColumn.Title.Layout</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
SaveColumns calls the DoSaveColumn method for each of the columns to signal
|
||||||
|
the OnSaveColumn event handler (when assigned).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
SaveColumns is called from the SaveContent method, and occurs when soDesign
|
||||||
|
has been included in the SaveOptions for the control and the Columns
|
||||||
|
collection has been enabled.
|
||||||
|
</p>
|
||||||
|
</descr>
|
||||||
|
<seealso>
|
||||||
|
<link id="TCustomGrid.Columns"/>
|
||||||
|
<link id="TCustomGrid.DoSaveColumn"/>
|
||||||
|
<link id="TCustomGrid.OnSaveColumn"/>
|
||||||
|
<link id="TCustomGrid.SaveContent"/>
|
||||||
|
<link id="TCustomGrid.SaveOptions"/>
|
||||||
|
<link id="TCGridColumn"/>
|
||||||
|
<link id="#lazutils.laz2_xmlcfg.TXMLConfig">TXMLConfig</link>
|
||||||
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
<element name="TCustomGrid.SaveColumns.cfg">
|
<element name="TCustomGrid.SaveColumns.cfg">
|
||||||
<short>XML configuration file where the values are written.</short>
|
<short>XML configuration file where the values are written.</short>
|
||||||
@ -22586,11 +22638,17 @@ Represents strings used as the cell values in TCustomStringGrid / TStringGrid.
|
|||||||
<descr>
|
<descr>
|
||||||
<p>
|
<p>
|
||||||
<var>TStringGridStrings</var> is a <var>TStrings</var> descendant that
|
<var>TStringGridStrings</var> is a <var>TStrings</var> descendant that
|
||||||
represents the strings used to populate the cells in a <var>TStringGrid</var>
|
implements the string container used to populate the cells in a
|
||||||
instance.
|
<var>TStringGrid</var> instance. A temporary TStringGridStrings instance is
|
||||||
|
created and used to store a new value assigned to the Cols or Rows property in
|
||||||
|
TStringGrid.
|
||||||
</p>
|
</p>
|
||||||
</descr>
|
</descr>
|
||||||
<seealso/>
|
<seealso>
|
||||||
|
<link id="TCustomStringGrid.Cols"/>
|
||||||
|
<link id="TCustomStringGrid.Rows"/>
|
||||||
|
<link id="TStringGrid"/>
|
||||||
|
</seealso>
|
||||||
</element>
|
</element>
|
||||||
|
|
||||||
<!-- private -->
|
<!-- private -->
|
||||||
@ -22600,7 +22658,7 @@ instance.
|
|||||||
<element name="TStringGridStrings.FIndex"/>
|
<element name="TStringGridStrings.FIndex"/>
|
||||||
<element name="TStringGridStrings.FOwner"/>
|
<element name="TStringGridStrings.FOwner"/>
|
||||||
|
|
||||||
<!-- private - but good to know -->
|
<!-- private -->
|
||||||
<element name="TStringGridStrings.ConvertIndexLineCol">
|
<element name="TStringGridStrings.ConvertIndexLineCol">
|
||||||
<short>
|
<short>
|
||||||
Converts an index position to line and column numbers for the Cells in a grid.
|
Converts an index position to line and column numbers for the Cells in a grid.
|
||||||
|
Loading…
Reference in New Issue
Block a user