Index

PowerDoc Objects

Control Configuration

Overview

This objects holds various configuration parameters that can be referenced by any form control.

Designated Rendering Function: NONE

None

Properties

fcCnfLib (10015)   PD_WORD_SIGNED

Configuration ID to select a library of controls.

fcCnfCharBox (10016)   PD_BYTE_UNSIGNED

Configuration ID to represent a character box. Character boxes are used to construct text boxes and list boxes.

fcCnfCtrlStyleOnFocus (10020)   PD_BYTE_UNSIGNED

Control's style when the focus is received.

Supported values:

0 = Display a focus box
1 = Do not display a focus box

fcCnfButtonNormal (10050)   PD_BYTE_UNSIGNED

Configuration ID to represent a normal (i.e. not pushed) button.

fcCnfButtonPushed (10051)   PD_BYTE_UNSIGNED

Configuration ID to represent a pushed button.

fcCnfRadioButtonNormal (10060)   PD_BYTE_UNSIGNED

Configuration ID to represent a normal (i.e. not pushed or selected) radio button.

fcCnfRadioButtonPushed (10061)   PD_BYTE_UNSIGNED

Configuration ID to represent a pushed radio button.

fcCnfRadioButtonSelected (10062)   PD_BYTE_UNSIGNED

Configuration ID to represent a selected radio button.

fcCnfCheckBoxNormal (10070)   PD_BYTE_UNSIGNED

Configuration ID to represent a normal (i.e. not pushed or selected) check box.

fcCnfCheckBoxPushed (10071)   PD_BYTE_UNSIGNED

Configuration ID to represent a pushed check box.

fcCnfCheckBoxSelected (10072)   PD_BYTE_UNSIGNED

Configuration ID to represent a selected check box.

fcCnfSliderNormal (10080)   PD_BYTE_UNSIGNED

Configuration ID to represent a normal (i.e. not pushed) slider.

fcCnfSliderPushed (10081)   PD_BYTE_UNSIGNED

Configuration ID to represent a pushed slider.

Example

C/C++

DT_ID_SLONG obj[1];

obj[0] = pdObjAdd(pd, 0, "Form Configuration");

/* Properties for object 0 */
pdPropAdd(pd, obj[0], fcCnfLib, "0", PD_WORD_SIGNED);
pdPropAdd(pd, obj[0], fcCnfCtrlStyleOnFocus, "0", PD_WORD_SIGNED);
pdPropAdd(pd, obj[0], fcCnfCharBox, "6", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfButtonNormal, "14", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfButtonPushed, "13", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfSliderNormal, "2", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfSliderPushed, "3", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfRadioButtonNormal, "6", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfRadioButtonPushed, "7", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfRadioButtonSelected, "8", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfCheckBoxNormal, "3", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfCheckBoxPushed, "4", PD_BYTE_UNSIGNED);
pdPropAdd(pd, obj[0], fcCnfCheckBoxSelected, "5", PD_BYTE_UNSIGNED);

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("Form Configuration");

/* Object Properties */

obj_0 + i(fcCnfLib, 0);
obj_0 + i(fcCnfCtrlStyleOnFocus, 0);
obj_0 + i(fcCnfCharBox, 6);
obj_0 + i(fcCnfButtonNormal, 14);
obj_0 + i(fcCnfButtonPushed, 13);
obj_0 + i(fcCnfSliderNormal, 2);
obj_0 + i(fcCnfSliderPushed, 3);
obj_0 + i(fcCnfRadioButtonNormal, 6);
obj_0 + i(fcCnfRadioButtonPushed, 7);
obj_0 + i(fcCnfRadioButtonSelected, 8);
obj_0 + i(fcCnfCheckBoxNormal, 3);
obj_0 + i(fcCnfCheckBoxPushed, 4);
obj_0 + i(fcCnfCheckBoxSelected, 5);
 

Index