1ipentry(n)                An IP address entry widget                ipentry(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       ipentry - An IP address entry widget
9

SYNOPSIS

11       package require Tcl  8.4
12
13       package require ipentry  ?0.1?
14
15       ::ipentry::ipentry pathName ?option value...?
16
17       pathName complete
18
19       pathName get
20
21       pathName insert iplist
22
23       pathName icursor index
24
25       pathName configure option value...
26
27       pathName cget option
28
29_________________________________________________________________
30

DESCRIPTION

32       This  package  provides  a widget for the entering of a IP address.  It
33       guarantees a valid address at all times.
34
35       ::ipentry::ipentry pathName ?option value...?
36              Creates a new ipentry widget and configures it  with  the  given
37              options  and their values.  Each widget created with the command
38              above supports the following methods:
39
40       pathName complete
41              Returns a boolean value. True indicates that the entry  contains
42              a complete IP address, meaning all 4 fields have a value.
43
44       pathName get
45              Returns the contents of the entry as a list consisting of 4 ele‐
46              ments.
47
48       pathName insert iplist
49              Takes a list of 4 elements and inserts one into each quad of the
50              entry,  in order.  All values in the list must be integers. Val‐
51              ues outside the range 0 to 255 are modified  to  be  within  the
52              range.
53
54       pathName icursor index
55              Sets  the position of the widgets insertion cursor. Only integer
56              values between 0 and 15 are valid. Setting the icursor will only
57              have an effect if the widget already has the input focus.
58
59       pathName configure option value...
60              Modifies  the configuration of the widget. For options and their
61              meaning see the widget options section.
62
63       pathName cget option
64              Returns information about the current configuration of the  wid‐
65              get, for the specified option. For options and their meaning see
66              the widget options section.
67

Widget options

69       Command-Line Switch:    -state
70       Database Name:          state
71       Database Class:         State
72
73
74              Specifies one of three states for the entry:  normal,  disabled,
75              or readonly.
76
77       Command-Line Switch:    -font
78       Database Name:          font
79       Database Class:         Font
80
81
82       Command-Line Switch:    -bd
83       Database Name:          borderWidth
84       Database Class:         BorderWidth
85
86
87       Command-Line Switch:    -fg
88       Database Name:          foreground
89       Database Class:         Foreground
90
91
92       Command-Line Switch:    -bg
93       Database Name:          background
94       Database Class:         Background
95
96
97       Command-Line Switch:    -relief
98       Database Name:          relief
99       Database Class:         Relief
100
101
102       Command-Line Switch:    -highlightthickness
103       Database Name:          highlightThickness
104       Database Class:         HighlightThickness
105
106
107       Command-Line Switch:    -highlightcolor
108       Database Name:          highlightColor
109       Database Class:         HighlightColor
110
111
112       Command-Line Switch:    -highlightbackground
113       Database Name:          highlightBackground
114       Database Class:         HighlightBackground
115
116
117       Command-Line Switch:    -selectbackground
118       Database Name:          selectBackground
119       Database Class:         Background
120
121
122       Command-Line Switch:    -selectforeground
123       Database Name:          selectForeground
124       Database Class:         Foreground
125
126
127       Command-Line Switch:    -selectborderwidth
128       Database Name:          selectBorderWidth
129       Database Class:         BorderWidth
130
131
132       Command-Line Switch:    -disabledbackground
133       Database Name:          disabledBackground
134       Database Class:         DisabledBackground
135
136
137       Command-Line Switch:    -disabledforeground
138       Database Name:          disabledForeground
139       Database Class:         DisabledForeground
140
141
142       Command-Line Switch:    -readonlybackground
143       Database Name:          readonlyBackground
144       Database Class:         ReadonlyBackground
145
146
147       Command-Line Switch:    -insertbackground
148       Database Name:          insertBackground
149       Database Class:         Background
150
151
152              Standard  widget options. See options for a description of their
153              meanings and values.
154

KEYWORDS

156       entry, ip address
157
158
159
160ipentry                               0.1                           ipentry(n)
Impressum