Pad++ Programmer's Guide

ITEM CONFIGURATION


In addition to the commands that are available for manipulating items, every item also has several options that may be configured with the 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.5

sets the maximum size of all items with the tag foo to 50, and makes them all transparent.

.pad itemconfigure 3 -penwidth

returns 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


Pad++ Programmer's Guide - 20 JUN 1997

Copyright Computer Science Department, The University of New Mexico

Web Accessibility