Pad++ Programmer's Guide
itemconfigure
command. Certain options are shared by all item types (for example, see -transparency and -position), while some options are specific to item types (like -font). Multiple options can be changed with a single itemconfigure command by alternating options and values. If the value of the last option is not specified, then the current value of that option is returned. Thus
.pad itemconfigure foo -maxsize 50 -transparency 0.5sets the maximum size of all items with the tag foo to 50, and makes them all transparent.
.pad itemconfigure 3 -penwidthreturns the current penwidth of item #3. If no options are specified, then a list of all the options and values are returned. This is a good way to find out what options are available for a specific item type. Note that
ic
is an alias for itemconfigure
, so an equivalent command is:
.pad ic 3 -penwidth
Copyright Computer Science Department, The University of New Mexico