Top
PowerCOBOL V11.0 Reference
FUJITSU Software

3.32 Table Control

Description:

The Table control presents data for display and editing in a table.

Sample image:

Details:

The data of individual cells is handled in TableCell objects. You can access these using the TableCells property.

For example to set a cell in the second row of the third column to "ABC":

MOVE "ABC" TO "Text" OF "TableCells" (2 3)
	OF TABLE1

The properties of each column are handled in TableColumn objects. You can access these using the TableColumns property.

For example to set the width of the third column to 500 units:

MOVE 500 TO "Width" OF "TableColumns" (3)
	OF Table1

Editing the TableColumns list:

You can use the following key strokes when editing the TableColums list in the Columns property page of the Table control:

[Alt + Up Arrow] : Move the selected elements upward.

[Alt + Down Arrow] : Move the selected elements downward.

Input:

You can control which columns can be edited by setting the Writable property to True or False at execution time.

Data can be entered to writable table cells when:

  • The AutoEdit property of the TableColumn object is set to True and the cell gains focus.

  • The cell has focus and a character key is pressed.

  • The cell has focus and the ENTER key is pressed.

  • The cell has focus and a double click is executed over the cell.

Data entry is concluded when:

  • The ENTER key is pressed.

  • The focus is lost by using one of the direction keys.

  • The DecisionMaxString property is True and the input data reaches the effective maximum string length.

Properties:

Appearance

AutoRowHeight

Array

BackColor

BackStyle

BorderStyle

CaptionBackGray

CellLines

ClassMajorVersion

ClassMinorVersion

ClassProgID

ClickColumn

ClickRow

Column

ColumnCaption

ColumnCount

Container

DecisionMax-

String

DefaultRowHeight

Enabled

Font

ForeColor

Height

HideSelection

Highlight

HighlightColor

IMEMode

Index

Left

Name

Parent

Printable

Row

RowCaption

RowCount

ScaleMode

ScalingStyle

SelectText

TabGroup

TabIndex

TableCells

TableColumns

TabStop

ToolTipText

Top

Visible

Width

Methods:

ClearTable

Move

Refresh

SelectCell

SetFocus

ZOrder

Events:

Click

DblClick

Edit

GotFocus

KeyDown

KeyPress

KeyUp

LostFocus

MouseDown

MouseMove

MouseUp

Return

Class ProgID name:

Fujitsu.PcobTable.4

Corresponding Control in PowerCOBOL V3.0 or earlier:

Table Item.