ButtonControlDefinition.isEnabled Property

Parent Object: ButtonControlDefinition
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/ButtonControlDefinition.h>

Description

Gets or sets if this definition is enabled or not. This has the effect of enabling and disabling any associated controls.

Syntax

"buttonControlDefinition_var" is a variable referencing a ButtonControlDefinition object.

# Get the value of the property.
propertyValue = buttonControlDefinition_var.isEnabled

# Set the value of the property.
buttonControlDefinition_var.isEnabled = propertyValue
"buttonControlDefinition_var" is a variable referencing a ButtonControlDefinition object.
#include <Core/UserInterface/ButtonControlDefinition.h>

// Get the value of the property.
boolean propertyValue = buttonControlDefinition_var->isEnabled();

// Set the value of the property, where value_var is a boolean.
bool returnValue = buttonControlDefinition_var->isEnabled(value_var);

Property Value

This is a read/write property whose value is a boolean.

Samples

Name Description
Customizing the UI using the API Sample Demonstrates how to work with tabs, panels, and command in the user interface. The full source for C++ and Python samples can be downloaded. This is especially useful for getting the resource files.

Version

Introduced in version August 2014