1Tk_AddOption(3)              Tk Library Procedures             Tk_AddOption(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_AddOption - Add an option to the option database
9

SYNOPSIS

11       #include <tk.h>
12
13       void
14       Tk_AddOption(tkwin, name, value, priority)
15

ARGUMENTS

17       Tk_Window tkwin (in)                      Token for window.
18
19       const char *name (in)                     Multi-element name of option.
20
21       const char *value (in)                    Value of option.
22
23       int priority (in)                         Overall priority level to use
24                                                 for option.
25______________________________________________________________________________
26

DESCRIPTION

28       This procedure is invoked to add an option to the  database  associated
29       with tkwin's main window.  Name contains the option being specified and
30       consists of names and/or classes separated by asterisks or dots, in the
31       usual X format.  Value contains the text string to associate with name;
32       this value will be returned in calls to Tk_GetOption.  Priority  speci‐
33       fies  the  priority  of  the  value;  when  options  are  queried using
34       Tk_GetOption, the value with the highest priority is returned.   Prior‐
35       ity  must  be  between  0 and TK_MAX_PRIO.  Some common priority values
36       are:
37
38       20     Used for default values hard-coded into widgets.
39
40       40     Used  for  options  specified  in  application-specific  startup
41              files.
42
43       60     Used for options specified in user-specific defaults files, such
44              as .Xdefaults, resource databases loaded into the X  server,  or
45              user-specific startup files.
46
47       80     Used  for  options specified interactively after the application
48              starts running.
49

KEYWORDS

51       class, name, option, add
52
53
54
55Tk                                                             Tk_AddOption(3)
Impressum