OBJSetBkModeΒΆ

OBJSetBkMode sets the background mode of a drawing object or diagram.

bool = OBJSetBkMode(hobj, nMode)

Return Value

If the function succeeds, the return value bool is TRUE (1); otherwise it is FALSE (0).

Parameters

hobj

hobj identifies a line, text, rectangle, ellipse or layer (diagram) object.

nMode

nMode is the background mode of the object. 0 is OPAQUE and 1 is TRANSPARENT.

Example

hDoc = DocCreate()
hPage = PageCreate()
DocAddPage(hDoc, hPage);
hLayer = LayerCreate()
PageAddLayer(hPage, hLayer)
hRb = RBCreate()
LayerAddObjects(hLayer, hRb)
OBJSetPosSize(hRb, [3, -8, 3, 3])
OBJSetBkMode(hRb, 0)    // OPAQUE
OBJSetSelect(hRb, FALSE)    // Deselect Object
PageReplot(hPage)

id-1392630