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
27

DESCRIPTION

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

KEYWORDS

53       class, name, option, add
54
55
56
57Tk                                                             Tk_AddOption(3)
Impressum