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(255) 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 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: Checksum (Method) ContainsPoint (Method) GetColWidth (Method) GetMouseDownRectColumn (Method) GetRowCount (Method) GetSurroundingRectCell (Method) GetSurroundingRectColumn (Method) GetSurroundingRectColumnStatic (Method) IncreaseCellCount (Method) Initialize (Method) Paint (Method) PaintContent (Method) ResetCellCount (Method) SetClientData (Method) SetVisible (Method) UpdateDynamicCells (Method) protPaintCell (Method) protUpdateCell (Method) virtual DoUpdateCell (Method) DoUpdateCellWithTemplate (Method) DynamicCellsData (Property) DynamicCellsDataBase (Property) IsCellSelected (Method) TemplateActive (Property)
VisuFbTableColumnSimpleBase.Checksum (METH) ¶ METHOD Checksum : VisuTypeChecksum This method computes the checksum of a cell of the column InOut: Scope Name Type Comment Return Checksum VisuTypeChecksum Input iRow INT The row of the cell
VisuFbTableColumnSimpleBase.ContainsPoint (METH) ¶ METHOD ContainsPoint : BOOL InOut: Scope Name Type Return ContainsPoint BOOL Input iRow INT pt VisuStructPoint
VisuFbTableColumnSimpleBase.GetColWidth (METH) ¶ METHOD GetColWidth : INT Returns the widths of the column in pixels InOut: Scope Name Type Return GetColWidth INT
VisuFbTableColumnSimpleBase.GetMouseDownRectColumn (METH) ¶ METHOD GetMouseDownRectColumn : VisuStructSimpleRectangle InOut: Scope Name Type Return GetMouseDownRectColumn VisuStructSimpleRectangle
VisuFbTableColumnSimpleBase.GetRowCount (METH) ¶ METHOD GetRowCount : INT This method returns the number of rows the column InOut: Scope Name Type Return GetRowCount INT
VisuFbTableColumnSimpleBase.GetSurroundingRectCell (METH) ¶ METHOD GetSurroundingRectCell : VisuStructSimpleRectangle This method returns a VisuStructSimpleRectangle variable with the surrounding rectangle of a cell InOut: Scope Name Type Comment Return GetSurroundingRectCell VisuStructSimpleRectangle Input iRow INT The row of the cell
VisuFbTableColumnSimpleBase.GetSurroundingRectColumn (METH) ¶ METHOD GetSurroundingRectColumn : VisuStructSimpleRectangle This method return a VisuStructSimpleRectangle variable with the surrounding rectangle of the column InOut: Scope Name Type Return GetSurroundingRectColumn VisuStructSimpleRectangle
VisuFbTableColumnSimpleBase.GetSurroundingRectColumnStatic (METH) ¶ METHOD GetSurroundingRectColumnStatic : VisuStructSimpleRectangle InOut: Scope Name Type Return GetSurroundingRectColumnStatic VisuStructSimpleRectangle
Struct ¶ VisuStructElemBaseClientSpecificData (Struct) VisuStructRectangularElementUtilBaseClientSpecificData (Struct) VisuStructWaitingCubeClientSpecificData (Struct) VisuStructWaitingFlowerClientSpecificData (Struct)