VisuFbTableColumnSimpleBase (FB)
FUNCTION_BLOCK VisuFbTableColumnSimpleBase EXTENDS VisuFbAbstractTableColumn IMPLEMENTS IVisualTableColumnSimpleBase
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
m_pFirstCellDataPOINTER TO BYTE
this input variable is used by CoDeSys to set the address of the first data cell of the column
VisuFbAbstractTableColumn
m_pSecondCellDataPOINTER TO BYTE
The address of the second data cell of the column
VisuFbAbstractTableColumn
m_iLineOffsetDWORDthe 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
DataArrayIComplexElementCallVisuFbAbstractTableColumn
m_pParentElementPOINTER TO BYTE
special attribute for this node, to make it real invisible by the AP
VisuFbAbstractTableColumn
m_sColumnVariableSTRING(255)This variable stores the name of the variable, that is used to retrieve the cell values of the column
WidthINT20
the width of the column. Default width is 20
m_bBitmapColumnBOOLIndicates, 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.
BitmapConfigurationVisuStructBitmapConfigurationThe configuration of the bitmap
EditableBOOLTRUE if the cells of the column can be edited. Not used at the moment
SelectedBOOLTRUE if the column has to be displayed in the table
TemplateVisuFbElemSimpleThe rectangle, that has to be used if Template is TRUE
RowCountINTthe number of rows of the column
ColumnTypeTypeClassThe data type of the column
m_arrCellsPOINTER 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_iCountCellsINTThe number of elements in m_arrCells Should be accessed using the property “CellCount”.
m_arrVisuFbAnalyzeTextVarsPOINTER 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_iArrayIndexINTThe 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
Properties:
DynamicCellsData
DynamicCellsDataBase
TemplateActive
Methods:
Checksum
ContainsPoint
GetColWidth
GetMouseDownRectColumn
GetRowCount
GetSurroundingRectCell
GetSurroundingRectColumn
GetSurroundingRectColumnStatic
IncreaseCellCount
Initialize
Paint
PaintContent
ResetCellCount
SetClientData
SetVisible
UpdateDynamicCells
protPaintCell
protUpdateCell
DoUpdateCell
DoUpdateCellWithTemplate
IsCellSelected
Structure:
VisuFbTableColumnSimpleBase.Checksum(METH)VisuFbTableColumnSimpleBase.ContainsPoint(METH)VisuFbTableColumnSimpleBase.GetColWidth(METH)VisuFbTableColumnSimpleBase.GetMouseDownRectColumn(METH)VisuFbTableColumnSimpleBase.GetRowCount(METH)VisuFbTableColumnSimpleBase.GetSurroundingRectCell(METH)VisuFbTableColumnSimpleBase.GetSurroundingRectColumn(METH)VisuFbTableColumnSimpleBase.GetSurroundingRectColumnStatic(METH)VisuFbTableColumnSimpleBase.IncreaseCellCount(METH)VisuFbTableColumnSimpleBase.Initialize(METH)VisuFbTableColumnSimpleBase.Paint(METH)VisuFbTableColumnSimpleBase.PaintContent(METH)VisuFbTableColumnSimpleBase.ResetCellCount(METH)VisuFbTableColumnSimpleBase.SetClientData(METH)VisuFbTableColumnSimpleBase.SetVisible(METH)VisuFbTableColumnSimpleBase.UpdateDynamicCells(METH)VisuFbTableColumnSimpleBase.protPaintCell(METH)VisuFbTableColumnSimpleBase.protUpdateCell(METH)virtualVisuFbTableColumnSimpleBase.DoUpdateCell(METH)VisuFbTableColumnSimpleBase.DoUpdateCellWithTemplate(METH)VisuFbTableColumnSimpleBase.DynamicCellsData(PROP)VisuFbTableColumnSimpleBase.DynamicCellsDataBase(PROP)VisuFbTableColumnSimpleBase.IsCellSelected(METH)VisuFbTableColumnSimpleBase.TemplateActive(PROP)