1mNAME0m
       option - Add/retrieve window options to/from the option database

1mSYNOPSIS0m
       1moption add 4m22mpattern24m 4mvalue24m ?4mpriority24m?

       1moption clear0m

       1moption get 4m22mwindow24m 4mname24m 4mclass0m

       1moption readfile 4m22mfileName24m ?4mpriority24m?


1mDESCRIPTION0m
       The  1moption 22mcommand allows you to add entries to the Tk option database
       or to retrieve options from the database.  The 1madd 22mform of the  command
       adds  a  new option to the database.  4mPattern24m contains the option being
       specified, and consists of names and/or classes separated by  asterisks
       or  dots, in the usual X format.  4mValue24m contains a text string to asso-
       ciate with 4mpattern24m;  this is the value that will be returned  in  calls
       to 1mTk_GetOption 22mor by invocations of the 1moption get 22mcommand.  If 4mprior-0m
       4mity24m is specified, it indicates the priority level for this option  (see
       below  for  legal  values);   it defaults to 1minteractive22m.  This command
       always returns an empty string.

       The 1moption clear 22mcommand clears the option database.   Default  options
       (from  the  1mRESOURCE_MANAGER  22mproperty  or the 1m.Xdefaults 22mfile) will be
       reloaded automatically the next time an option is added to the database
       or removed from it.  This command always returns an empty string.

       The  1moption  get  22mcommand returns the value of the option specified for
       4mwindow24m under 4mname24m and 4mclass24m.  If several entries in the option database
       match  4mwindow24m,  4mname24m, and 4mclass24m, then the command returns whichever was
       created with highest 4mpriority24m level.  If  there  are  several  matching
       entries at the same priority level, then it returns whichever entry was
       most recently entered into the option database.  If there are no match-
       ing entries, then the empty string is returned.

       The  1mreadfile 22mform of the command reads 4mfileName24m, which should have the
       standard format for an X resource database such as 1m.Xdefaults22m, and adds
       all the options specified in that file to the option database.  If 4mpri-0m
       4mority24m is specified, it indicates the priority level at which  to  enter
       the options;  4mpriority24m defaults to 1minteractive22m.

       The  4mpriority24m  arguments  to  the 1moption 22mcommand are normally specified
       symbolically using one of the following values:

       1mwidgetDefault0m
              Level 20.  Used for default values hard-coded into widgets.

       1mstartupFile0m
              Level 40.  Used for options  specified  in  application-specific
              startup files.

       1muserDefault0m
              Level  60.  Used for options specified in user-specific defaults
              files, such as 1m.Xdefaults22m, resource databases loaded into the  X
              server, or user-specific startup files.

       1minteractive0m
              Level  80.   Used  for options specified interactively after the
              application starts running.  If  4mpriority24m  isn't  specified,  it
              defaults to this level.

       Any  of the above keywords may be abbreviated.  In addition, priorities
       may be specified numerically using integers between 0 and  100,  inclu-
       sive.   The numeric form is probably a bad idea except for new priority
       levels other than the ones given above.


1mKEYWORDS0m
