cuparm command

Sets various parameters of a custom UI gadget.

All Usages Options Examples

Usages

  1. cuparm -n gadget_name [parameters]

Options

-n gadget_name

Name of the gadget to modify

-w float

Set preferred gadget width.

-h float

Set preferred gadget height.

-x 0|1

Horizontally stretchable on/off

-y 0|1

Vertically stretchable on/off

-s float

Sets margin.

-t float

Sets spacing.

-l "string"

Sets the gadget label.

-I string

Provide a path to an image to use as an icon for a button gadget.

-L ver|vercen|verright|hor|horcen|hortop

Sets layout type. Ignored for non-containers.

-B background|bevelup|beveldown|border|outline|paper|paperline|separator

Sets container look. Ignored for non-containers.

-N string

Renames the gadget to string.

-v string

Sets the value name of the gadget.

-m float

Sets the minimum value for a slider.

-M float

Sets the maximum value for a slider.

-i float

Sets the initial value for a slider.

-d 0|1

Connects the gadget directly to a parameter.

-p string

Path (usually a channel) to the parameter to connect.

-S "script"

Sets the script for the gadget.

Examples

cuparm -n /Panel1 -N Test_Panel # rename the panel
cuparm -n ../button1 -l "hit me" # set a label
cuparm -n ../container -L hor -B paper
cuparm -n button1 -S "unix jot"
cuparm -n slider20 -m 1 -M 20 -i 5