Palettes.addTransparent Method

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

Description

Creates a new transparent Palette.

Syntax

"palettes_var" is a variable referencing a Palettes object.
# Uses no optional arguments.
returnValue = palettes_var.addTransparent(id, name, htmlFileURL, isVisible, showCloseButton, isResizable)

# Uses optional arguments.
returnValue = palettes_var.addTransparent(id, name, htmlFileURL, isVisible, showCloseButton, isResizable, isOpaqueWhenUndocked, width, height)
"palettes_var" is a variable referencing a Palettes object.

#include <Core/UserInterface/Palettes.h>

// Uses no optional arguments.
returnValue = palettes_var->addTransparent(id, name, htmlFileURL, isVisible, showCloseButton, isResizable);

// Uses optional arguments.
returnValue = palettes_var->addTransparent(id, name, htmlFileURL, isVisible, showCloseButton, isResizable, isOpaqueWhenUndocked, width, height);

Return Value

Type Description
Palette Returns the newly created palette or null in the case the creation failed.

Parameters

Name Type Description
id string The unique id for this palette. The id must be unique with respect to all of the palettes.
name string The displayed name of this palette. This is the name visible in the user interface.
htmlFileURL string Specifies the URL to the HTML file that will be displayed in the palette. This can be a local file or on the web.
isVisible boolean Specifies if the palette is initially visible or not. It's useful to create it invisibly, change other desired properties and then use the isVisible property to finally make it visible to the user.
showCloseButton boolean Specifies if a "Close" button should be displayed on the palette to allow the user to easily close it.
isResizable boolean Specifies if the palette can be resized by the user or not.
isOpaqueWhenUndocked boolean Specifies if the palette will be transparent when docked and opaque when undocked.

This is an optional argument whose default value is False.
width integer Specifies the width of the palette in pixels. If no width is specified a default width will be used.

This is an optional argument whose default value is 200.
height integer Specifies the height of the palette in pixels. If no height is specified a default height will be used.

This is an optional argument whose default value is 200.

Version

Introduced in version March 2024