Go to: Synopsis. Return value. Flags. MEL examples.
setUITemplate [-popTemplate] [-pushTemplate]
[string]
setUITemplate is undoable, queryable, and NOT editable.
This command sets the current(default) command template for the ELF commands. The special name NONE can be used to set no templates current. See "uiTemplate" command also.
string | The name of the currently selected command template. |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-popTemplate(-ppt)
|
|
![]() |
||
|
||||
-pushTemplate(-pst)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Create a new template. // if (`uiTemplate -exists ExampleTemplate`) { deleteUI -uiTemplate ExampleTemplate; } uiTemplate ExampleTemplate; button -defineTemplate ExampleTemplate -width 100 -height 40; frameLayout -defineTemplate ExampleTemplate -borderVisible true -labelVisible false; // Create a window and apply the template. // string $window = `window`; setUITemplate -pushTemplate ExampleTemplate; columnLayout -rowSpacing 5; frameLayout; columnLayout; button -label "One"; button -label "Two"; button -label "Three"; setParent ..; setParent ..; frameLayout; columnLayout; button -label "Red"; button -label "Green"; button -label "Blue"; setParent ..; setParent ..; setUITemplate -popTemplate; showWindow $window;