VisuFbTableColumnSimpleBase (FB)

FUNCTION_BLOCK VisuFbTableColumnSimpleBase EXTENDS VisuFbAbstractTableColumn IMPLEMENTS IVisualTableColumnSimpleBase

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

m_pFirstCellData

POINTER TO BYTE

this input variable is used by CoDeSys to set the address of the first data cell of the column

VisuFbAbstractTableColumn

m_pSecondCellData

POINTER TO BYTE

The address of the second data cell of the column

VisuFbAbstractTableColumn

m_iLineOffset

DWORD

the offset of the addresses of the 1st and the 2nd data cell. Needed to calculate the addresses of the subsequent (3,4,5…) data cells

VisuFbAbstractTableColumn

DataArray

IComplexElementCall

VisuFbAbstractTableColumn

m_pParentElement

POINTER TO BYTE

special attribute for this node, to make it real invisible by the AP

VisuFbAbstractTableColumn

m_sColumnVariable

STRING

This variable stores the name of the variable, that is used to retrieve the cell values of the column

Width

INT

20

the width of the column. Default width is 20

m_bBitmapColumn

BOOL

Indicates, whether the content of the cell has to be interpreted as bitmap ID for drawing a bitmap. Can only be used if the cell content is of type string.

BitmapConfiguration

VisuStructBitmapConfiguration

The configuration of the bitmap

Editable

BOOL

TRUE if the cells of the column can be edited. Not used at the moment

Selected

BOOL

TRUE if the column has to be displayed in the table

Template

VisuFbElemSimple

The rectangle, that has to be used if Template is TRUE

RowCount

INT

the number of rows of the column

ColumnType

TypeClass

The data type of the column

m_arrCells

POINTER TO ARRAY [0..1] OF VisuFbElemSimple

a pointer to an array of visualisation elements, that render the cells. The number of elements in the array corresponds to the number of visible rows in the table. The number of visible rows is also a parameter of the paint method. Should be accessed using the property “Cells”.

m_iCountCells

INT

The number of elements in m_arrCells Should be accessed using the property “CellCount”.

m_arrVisuFbAnalyzeTextVars

POINTER TO ARRAY [0..1] OF VisuFbAnalyzeTextVars

This variable stores the information for each cell (m_arrCells), how the text of a cell is retrieved. We need an array with the same size like m_arrCells, because all visible cells are computed during protUpdateCell

m_iArrayIndex

INT

The array index which belongs to the column (example: The leftmost column (column index = 0) doesn’t have the array index 0 if the array dimension starts with a value != 0. So we have to store the corresponding array index too). Necessary