option value... }
Define a new mega-widget class named
className. A Tcl command named
className is also defined, which
will create new instances of the class. Available options are
Aliases for the options defined by
-flag. Each element of
aliasList is a two-item list
consisting of the alias followed by the full option to
which it maps.
Resource class name for the mega-widget for use by
Tk resource database. By convention,
classResName is the same as
className argument with
the first letter capitalized.
Configuration of each option that the new
mega-widget supports (see-flag).
Each element of
a four- or five-item list. The required four elements
are the option name (including the hyphen), resource
name, resource class, and default value. The optional
fifth element is a Tcl command used to validate a value
for the option. This command is called once the option
is initialized at creation and whenever its value is set
with the configure method. The
candidate value is appended to the call as an argument.
The command should return the value to actually be used
or generate an error.
List of Tk resource specifications to be applied for each instance of the mega-widget. These resources are most often used to set up configuration defaults for subwidgets of the mega-widget. Each element of resList is a two-item list giving the pattern and value, as ...