OBJSetSelectΒΆ

OBJSetSelect selects or unselects an object.

bool = OBJSetSelect(hobj, bSelect)

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.

bSelect

If bSelect is TRUE (1), the object will be selected. If bSelect is FALSE (0), the object will be unselected.

Example

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

id-68294