Share

Command.isOKButtonVisible Property

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

Description

Specifies if the OK button is visible or not. If set to false then the OK button is removed and the "CANCEL" button text changes to "CLOSE". You can override the default button text using the cancelButtonText property.

Syntax

"command_var" is a variable referencing a Command object.

# Get the value of the property.
propertyValue = command_var.isOKButtonVisible

# Set the value of the property.
command_var.isOKButtonVisible = propertyValue

Property Value

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

Version

Introduced in version June 2015

Was this information helpful?