Columns
Col_Create:cHandle; |
Function EscapeE only COL_CREATE function creates a column-formatting resource. All "text in column" formatting procedures require a column object handle – CHANDLE. There must be a corresponding COL_FREE call for each COL_CREATE function. |
|
cx:=col_create; |
|
Col_Text(Cx:cHandle;S:string); |
Procedure EscapeE only COL_TEXT adds text S to a "text in column" formatting object referenced by column object handle CX. No text is drawn by this operation. Any amount of text may be added before the object is composed and displayed. Use COL_FONT and COL_STYLE procedures to control the font face and style used by COL_TEXT. |
Col_Font(Cx:cHandle;Pt:number;FontName:string); |
Procedure EscapeE only COL_FONT selects the font to be used for the COL_TEXT procedure. col_Font(cx,12,'Tahoma'); |
Col_Style(Cx:cHandle;Style:string); |
Procedure EscapeE only COL_STYLE selects the font style to be used for the COL_TEXT procedure. STYLE options are BOLD and ITALIC; an empty string selects "NORMAL" style. col_Style(cx,'Bold'); |
Col_Compose(Cx:cHandle;Width:number;Format:string); |
Procedure EscapeE only COL_COMPOSE prepares the "text in column" formatting object for display. Specify a column WIDTH (in pixels at 600dpi) and a column FORMAT option – 'LJ', 'CJ', 'RJ' or 'FILL'. The column's height and line count properties are calculated for the chosen option; these values may be recovered using the COL_HEIGHTand COL_COUNT functions. The stored text is not destroyed by this procedure and it may be repeated for the same text with different parameters. See also COL_LEADING procedure. |
Col_Display(Cx:cHandle;X,Y:number); |
Procedure EscapeE only COL_DISPLAY draws text, previously formatted using the COL_COMPOSE procedure, at the specified position X,Y on the page. The stored text is not destroyed by this procedure and it may be repeated for the same text with different parameters. |
Col_Free(Cx:cHandle); |
Procedure EscapeE only COL_FREE recovers column formatting resources. See COL_CREATE function. |
Col_Break(Cx:cHandle); |
Procedure EscapeE only COL_BREAK inserts a line break in a column formatting object. |
Col_Blank(Cx:cHandle;Lines:number); |
Procedure EscapeE only COL_BLANK inserts a number of blank LINES in a column formatting object. |
Col_Height(Cx:cHandle):number; |
Function EscapeE only COL_HEIGHT returns the composed height of a column. See also COL_COUNT function and COL_COMPOSE, COL_LEADING procedures. |
Col_Count(Cx:cHandle):number; |
Function EscapeE only COL_COUNT returns the number of lines in a composed column (see COL_COMPOSE procedure). |
Col_Leading(Cx:cHandle;L:number); |
Procedure EscapeE only COL_LEADING allows the inter-line gap to be adjusted before a column is displayed (see COL_DISPLAY procedure). |