Using the Container Object

After initializing and creating the container, call L_ContainerSetObjectType to set which type of object to draw in the container. For example, the sample below sets the container to draw circles:

L_ContainerSetObjectType (pLeadContainer, CONTAINER_OBJECT_TYPE_CIRCLE); 

This function requires a valid container handle and a constant that specifies the type of object to set.

After setting the object type, the container will begin drawing that object whenever the user clicks and drags the mouse over the window that owns the container. To get the current container object type, call L_ContainerGetObjectType.

Each object type drawn by a container can have a different mouse cursor associated with it. For example, when a rectangle object is drawn in the container, one type of cursor is displayed. If a circle object is drawn in the container a different mouse cursor can be displayed. To set which cursor to use for a specific object type drawn by a container, call L_ContainerSetObjectCursor.

To determine the cursor set for a specific object type call L_ContainerGetObjectCursor.

L_ContainerEditObject displays an object described in a CONTAINEROBJECTDATA structure and makes it available for editing.

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

LEADTOOLS Container and Automation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.