Go to: Synopsis. Return value. MEL examples.

Synopsis

newPanelItems string

newPanelItems is undoable, NOT queryable, and NOT editable.

This action builds menu items to create new panels. The first argument defines the name of the menu to which the items are to be added.

Return value

booleanTrue if successful, otherwise false.

MEL examples

string $window = `window -menuBar true`;
string $menu = `menu -label "Panels"`;
paneLayout;
text -label "";
showWindow $window;
newPanelItems $menu;