OpenTable

New in version 5.0

OpenTable ( xAnchor ;​ yAnchor ;​ hAlignment ;​ vAlignment )

Argument Type Range Default Note
xAnchor num -inf..+inf (required) Dimension:[pt]
yAnchor num -inf..+inf (required) Dimension:[pt]
hAlignment int 1..3 left
vAlignment int 1..3 top
Examples

OpenTable(0;​0;​left;​top)

OpenTable(200;​150;​2;​1)

OpenTable(200;​250;​center;​center)

Description

A total of 17 functions are available for designing tables. They make it possible to:
• define tables with variable column widths and variable row heights.
• design cells with individual text styles, borders and backgrounds.
• alternate row and column backgrounds.
• add gaps between rows and columns.

Table structure:

OpenTable(xAnchor;​yAnchor;​hAlignment;​vAlignment)

/* ...  */

/* Sequence of table functions.  */

/* ...  */

Background() /* Optional. */

BackgroundOptions() /* Optional. */

CloseTable()

OPEN_TABLE_01
1

OpenDrawing(300;​125)

2

OpenTable(0;​0;​left;​top)

3

TableTexts("";​"10\t1,234.21\t712\n25\t93.42\t3949\n268\t234.20\t6854\n185\t-1,692.21\t•••\n124\t198.50\t1000")

4

TableCellStyle(0;​Verdana;​15;​plain;​black) /* 0..all cells. */

5

TableColumnAlignments(right;​right;​right)

6

TableColumnWidths(0;​100;​80) /* 1st column: 0...automatic column width. */

7

TableRowAlternateBackgrounds(#eef;​white) /* Color of row1 row2 ... */

8

CloseTable()

9

CloseDrawing()

OPEN_TABLE_01
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×