LContainer::SetEnabled

Summary

Enables or disables the container.

Syntax

#include "Ltwrappr.h"

L_INT LContainer::SetEnabled (bEnable)

Parameters

L_BOOL bEnable

Flag that indicates whether to enable or disable the container. Possible values are:

Value Meaning
TRUE Enable the container.
FALSE Disable the container.

Comments

In order to edit objects in a container, the container must be enabled.

Returns

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

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example toggles the enabling state of the container.

L_INT LContainer_SetEnabledExample(LContainer & lcont) 
 
{ 
   L_BOOL fEnable ; 
 
   /* Get the enabling state of the container */ 
 
   fEnable = lcont.IsEnabled () ; 
 
   /* Toggle the state and return */ 
 
   return lcont.SetEnabled (! fEnable ) ; 
 
} 

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

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