.. highlightlang:: us .. index:: LayerSetCursorAttrib .. _layersetcursorattrib: LayerSetCursorAttrib ==================== .. us.tag LayerSetCursorAttrib NOTREADYENGLISH LayerCursor :ref:`LayerSetCursorAttrib` sets the cursor attributes. .. function:: bool = LayerSetCursorAttrib(hLayer, nAttrib) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer *hLayer* is the handle of a diagram (layer). .. uparam:: nAttrib *nAttrib* is an or combination of the following values: .. list-table:: :header-rows: 1 * - Name - Value * - CURSOR_SHOWTWO - 1 * - CURSOR_SHOWHORZ - 2 * - CURSOR_INTERPOLATION - 4 * - CURSOR_PRINT - 8 * - CURSOR_ENABLECALLBACK - 16 * - CURSOR_ONLYACTIVEDIA - 32 * - CURSOR_ONLYACTIVEDATASET - 64 * - CURSOR_HIDEGRID - 128 .. seealso:: :ref:`overview-diagrams`, :ref:`LayerGetCursorAttrib`, :ref:`LayerGetCursorPosition` :sub:`id-1933235`