Index

PowerDoc Objects

Listbox Column

Overview

This object supplies a column definition for any secondary columns in the List Box object.

Designated Rendering Function: NONE

Note: fcValue_08, fcValue_16, fcValue_24 and fcValue_32 cannot be used at the same time. fcValue_32 takes precedence over fcValue_24. fcValue_24 takes precedence over fcValue_16. Finally, fcValue_16 takes precedence over fcValue_08.

None

Properties

fcListColOffset (10103)   PD_LONG_SIGNED

Offset of the list's column in document units.

fcAlign (10104)   PD_BYTE_UNSIGNED

Also appears in: Text Box, List Box

Alignment of a text line within a text box or list box column.

Supported values:

0 = Left: The text line is aligned left.

1 = Center: The text line is centered.

2 = Right: The text line is aligned right.

3 = Justified Type A-L: Justify the text line by inserting extra spacing after each character. If this is not possible (e.g. the text line contains a single character), then left justify.

4 = Justified Type B-L: Justify the text line by inserting extra spacing only after the space characters. If this is not possible (e.g. the text line does not have any space characters), then left justify.

5 = Justified Type A-C: Justify the text line by inserting extra spacing after each character. If this is not possible (e.g. the text line contains a single character), then center.

6 = Justified Type B-C: Justify the text line by inserting extra spacing only after the space characters. If this is not possible (e.g. the text line does not have any space characters), then center.

7 = Justified Type A-R: Justify the text line by inserting extra spacing after each character. If this is not possible (e.g. the text line contains a single character), then right justify.

8 = Justified Type B-R: Justify the text line by inserting extra spacing only after the space characters. If this is not possible (e.g. the text line does not have any space characters), then right justify.

fcValue_08 (10005)   PD_ASC

Supported Compression Methods: 006

Also appears in: Button, Radio Button, Check Box, Text Box, List Box

Control's value in ANSI format (1 byte per character). Any form control can have a value. Most controls (e.g. buttons, radio buttons, check boxes, text boxes) need a value to function in a useful way. Some controls, however, can function without a value (e.g. sliders).

fcValue_16 (10012)   PD_HEX

Supported Compression Methods: 004

Also appears in: Button, Radio Button, Check Box, Text Box, List Box

Control's value in Unicode format (2 bytes per character). Any form control can have a value. Most controls (e.g. buttons, radio buttons, check boxes, text boxes) need a value to function in a useful way. Some controls, however, can function without a value (e.g. sliders).

fcValue_24 (10013)   PD_HEX

Supported Compression Methods: 002

Also appears in: Button, Radio Button, Check Box, Text Box, List Box

Control's value in Unicode format (3 bytes per character). Any form control can have a value. Most controls (e.g. buttons, radio buttons, check boxes, text boxes) need a value to function in a useful way. Some controls, however, can function without a value (e.g. sliders).

fcValue_32 (10014)   PD_HEX

Supported Compression Methods: 000

Also appears in: Button, Radio Button, Check Box, Text Box, List Box

Control's value in Unicode format (4 bytes per character). Any form control can have a value. Most controls (e.g. buttons, radio buttons, check boxes, text boxes) need a value to function in a useful way. Some controls, however, can function without a value (e.g. sliders).

Example

C/C++

DT_ID_SLONG obj[1];

obj[0] = pdObjAdd(pd, 0, "Listbox Column");

/* Properties for object 3 */
pdPropAdd(pd, obj[0], fcListColOffset, "800", PD_LONG_SIGNED);
pdPropAdd(pd, obj[0], fcAlign, "2", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcValue_08, "$100.00\r$5,500.00\r$9,850.00\r$800.00\r$200.00\r$8,550.00", PD_ASC);

INTEGRAL DSL

/* Lambda shortcuts */

local o = @(label = "") CDTObj(::my.doc, label); /* to make object */
local p = @(id, str, len = PD_DEFAULT) CDTProp(id, str, len); /* to add property - general */
local s = @(id, str) CDTPropStr(id, str); /* to add property - string */
local i = @(id, num) CDTPropInt(id, num); /* to add property - integer */
local l = @(id, obj) CDTLink(id, obj); /* to add link */

/* Objects */

local obj_0 = o("Listbox Column");

obj_0 + i(fcListColOffset, 800);
obj_0 + i(fcAlign, 2);
obj_0 + p(fcValue_08, "$100.00\r$5,500.00\r$9,850.00\r$800.00\r$200.00\r$8,550.00", PD_ASC);
 

Index