Share

Command.okButtonText Property

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

Description

Gets and sets the text displayed on the OK button. When the OK and Cancel buttons are displayed, this text defaults to "OK". If the Cancel button is not displayed the text defaults to "CLOSE".

Syntax

"command_var" is a variable referencing a Command object.

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

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

Property Value

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

Version

Introduced in version June 2015

Was this information helpful?