LAnnotation::GetActiveState

#include "ltwrappr.h"

virtual L_UINT LAnnotation::GetActiveState(L_VOID)

Gets the Activation State of the specified object. This function is available in the Document/Medical Toolkits.

Returns

The object's activation state constant. 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.

Comments

The following types of objects respond to activation events:

image\sqrblit.gif Automation object

image\sqrblit.gif AudioClip

image\sqrblit.gif Button

image\sqrblit.gif HotSpot

Required DLLs and Libraries

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Annotation Functions: Object Properties

 

Implementing Annotations

Example

L_VOID TestFunction(LAnnotation& LeadAnn)
{
   L_UINT   uActiveState ;
   ANNRECT  AnnRect ;
   
   uActiveState = LeadAnn.GetActiveState() ;
   if (uActiveState != ANNACTIVE_ENABLED)
      LeadAnn.SetActiveState(ANNACTIVE_ENABLED) ;

   LeadAnn.GetRect(&AnnRect); 

}