Creating Drawing Tables
Functions Introduced:
• ProDwgtabledataAlloc()
• ProDwgtabledataOriginSet()
• ProDwgtabledataSizetypeSet()
• ProDwgtabledataColumnsSet()
• ProDwgtabledataRowsSet()
• ProDrawingTableCreate()
• ProDwgtableTextEnter()
• ProDwgtableDisplay()
• ProDwgtableGrowthdirectionSet()
The information required to build a table is contained in an opaque data structure, ProDwgtabledata that has to be allocated and filled before the table can be created. The function ProDwgtabledataAlloc() allocates the data.
ProDwgtabledataOriginSet() sets the position of the top left corner of a table in the ProDwgtabledata description.
ProDwgtabledataSizetypeSet() specifies whether the size of the columns and rows will be in screen coordinates, or as the number of text characters. It is usually more convenient to specify as numbers of characters.
ProDwgtabledataColumnsSet() sets the width of the columns as well as the default justifications of text in the columns.
ProDwgtabledataRowsSet() sets the height of the rows.
ProDwgtableTextEnter()
ProDrawingTableCreate() creates the table in the drawing and optionally displays it. If your program is about to add rows, columns, or text to the table, it is usually better not to draw it immediately. It can be drawn later using ProDwgtableDisplay() and this will avoid multiple redrawing.
The growth direction of a drawing table determines how a drawing table will expand in terms of rows and columns when repeat regions are added to the table. Use the function ProDwgtableGrowthdirectionSet() to set the growth direction of the table. The growth direction argument, ProDwgtableGrowthdirType takes the following values:
• PRODWGTABLEGROWTHDIR_DOWNRIGHT
• PRODWGTABLEGROWTHDIR_DOWNLEFT
• PRODWGTABLEGROWTHDIR_UPRIGHT
• PRODWGTABLEGROWTHDIR_UPLEFT
For more information on the growth direction, see the Help.