Palette.setMaximumSize Method

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

Description

Sets the maximum size of the palette. The user cannot resize it to be larger than this size. This does not change the current size of the palette unless the palette is already larger than this size.

Calling this method and setting the width and height to zero, removes the maximum size restriction.

Syntax

"palette_var" is a variable referencing a Palette object.
returnValue = palette_var.setMaximumSize(width, height)
"palette_var" is a variable referencing a Palette object.

#include <Core/UserInterface/Palette.h>

returnValue = palette_var->setMaximumSize(width, height);

Return Value

Type Description
boolean Returns true if setting the maximum size was successful.

Parameters

Name Type Description
width integer Specifies the maximum width of the palette.
height integer Specifies the maximum height of the palette.

Version

Introduced in version May 2017