Simple lists

Top  Previous  Next

DFM-Translator > Special assignments > Lists > Simple lists

Examples of a simple lists are ColWidths or RowHeights in a TStringGrid The DFM code which assign some column widths might look like:

 

  object StringGrid1: TStringGrid

  ...

    ColWidths = (

      10

      100

      ...

      )

 

For such lists assignment procedures can be defined, simitar as to other DFM assignments. For TStringGrid the following two procedures are predefined:

 

 

public static void AssignTStringGridColWidths(TStringGrid grid, int value, int index)

public static void AssignTStringGridRowHeights(int value, int index)

 

 

Here the assignment procedure a third parameter is passed, which is the number of the list value.

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content