L_AnnSetActiveState

Summary

Sets the activation state of an annotation object. If an annotation object is active, it will respond to activation events.

Syntax

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnSetActiveState(hObject, uState)

Parameters

HANNOBJECT hObject

Handle to the annotation object.

L_UINT uState

The constant that indicates whether the object is enabled or disabled. Possible values are:

Value Meaning
ANNACTIVE_DISABLED [0] The object will not respond to activation events.
ANNACTIVE_ENABLED [1] The object will respond to activation events.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

The following types of objects, respond to activation events:

For descriptions of the various types of objects and their properties, refer to Types of Annotations.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to the TestCreateButtonAnn procedure in Using Non automated Annotations in Run Mode.
For an example of how the tag of an activated object is used, refer to the L_AnnGetTag function.
For a complete sample code, refer to the \Examples\Annotation\C\Annotate demo.

Help Version 22.0.2023.7.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.