TextCommandPalette.setSize Method
Parent Object:
TextCommandPaletteDefined in namespace "adsk::core" and the header file is <Core/UserInterface/TextCommandPalette.h>
Description
Sets the size of the palette. This is best used for a floating palette because either the width or height can be locked when a palette is docked.
Syntax
"textCommandPalette_var" is a variable referencing a TextCommandPalette object.returnValue = textCommandPalette_var.setSize(width, height)
|
"textCommandPalette_var" is a variable referencing a TextCommandPalette object.
#include <Core/UserInterface/TextCommandPalette.h>
returnValue = textCommandPalette_var->setSize(width, height);
|
Return Value
boolean |
Returns true if the sizing was succesful. It is still considered a success even if the width or height could not be changed because of how the palette is docked or snapped. |
Parameters
width |
integer |
Specifies the width of the palette. Depending on how the palette is docked or snapped, the width may not be editable. |
height |
integer |
Specifies the height of the palette. Depending on how the palette is docked or snapped, the height may not be editable. |
Version
Introduced in version August 2017