OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [LabFrame.n] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1996, Expert Interface Technologies
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" The file man.macros and some of the macros used by this file are
8
'\" copyrighted: (c) 1990 The Regents of the University of California.
9
'\"              (c) 1994-1995 Sun Microsystems, Inc.
10
'\" The license terms of the Tcl/Tk distrobution are in the file
11
'\" license.tcl.
12
.so man.macros
13
'----------------------------------------------------------------------
14
.HS tixLabelFrame tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixLabelFrame \- Create and manipulate tixLabelFrame widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixLabelFrame\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.PP
31
.SH SUPER-CLASS
32
The \fBTixLabelFrame\fR class is derived from the \fBTixLabelWidget\fR
33
class and inherits all the commands, options and subwidgets of its
34
super-class.
35
'
36
'----------------------------------------------------------------------
37
.SH "STANDARD OPTIONS"
38
'
39
The LabelFrame widget supports all the standard options of a frame
40
widget. See the \fBoptions(n)\fR manual entry for details on the
41
standard options.
42
'
43
'----------------------------------------------------------------------
44
.SH "WIDGET-SPECIFIC OPTIONS"
45
'
46
'
47
'----------BEGIN
48
.LP
49
.nf
50
Name:           \fBlabel\fR
51
Class:          \fBLabel\fR
52
Switch:         \fB\-label\fR
53
.fi
54
.IP
55
Specifies the string to display as the label of this LabelFrame widget.
56
'----------END
57
'
58
'----------BEGIN
59
.LP
60
.nf
61
Name:           \fBlabelSide\fR
62
Class:          \fBLabelSide\fR
63
Switch:         \fB\-labelside\fR
64
.fi
65
.IP
66
Specifies where the label should be displayed relative to the entry
67
subwidget. Valid options are: \fBtop\fR, \fBleft\fR, \fBright\fR,
68
\fBbottom\fR, \fBnone\fR or \fBacrosstop\fR.
69
'----------END
70
'
71
'----------BEGIN
72
.LP
73
.nf
74
Name:           \fBpadX\fR
75
Class:          \fBPad\fR
76
Switch:         \fB\-padx\fR
77
.fi
78
.IP
79
Specifies the amount of the horizontal padding around the \fBframe\fR
80
subwidget. Must be a valid non-negative integer number.
81
'----------END
82
'
83
'----------BEGIN
84
.LP
85
.nf
86
Name:           \fBpadY\fR
87
Class:          \fBPad\fR
88
Switch:         \fB\-pady\fR
89
.fi
90
.IP
91
Specifies the amount of the vertical padding around the \fBframe\fR
92
subwidget.
93
'----------END
94
'
95
'----------------------------------------------------------------------
96
.SH SUBWIDGETS
97
'
98
'----------BEGIN
99
.LP
100
.nf
101
Name:           \fBframe\fR
102
Class:          \fBFrame\fR
103
.fi
104
.IP
105
The frame subwidget.
106
'----------END
107
'----------BEGIN
108
.LP
109
.nf
110
Name:           \fBlabel\fR
111
Class:          \fBLabel\fR
112
.fi
113
.IP
114
The label subwidget.
115
'----------END
116
.BE
117
'
118
'----------------------------------------------------------------------
119
.SH DESCRIPTION
120
'
121
.PP
122
'
123
The \fBtixLabelFrame\fR command creates a new window (given by
124
the \fIpathName\fR argument) and makes it into a LabelFrame
125
widget. Additional options, described above, may be specified on the
126
command line or in the option database to configure aspects of the
127
LabelFrame such as its cursor and relief.
128
'
129
.SH CREATING WIDGETS INSIDE A LABELFRAME
130
.PP
131
'
132
The LabelFrame widget packages a frame widget and a label into one
133
mega widget. To create widgets inside a LabelFrame widget, one must
134
create the new widgets relative to the \fBframe\fR subwidget and
135
manage them inside the \fBframe\fR subwidget. An error will be
136
generated if one tries to create widgets as immediate children of the
137
LabelFrame. For example: the following is correct code, which creates
138
new widgets inside the frame subwidget:
139
.PP
140
.nf
141
    tixLabelFrame .f
142
    set f [.f subwidget frame]
143
    button $f.b \-text hi
144
    pack $f.b
145
.fi
146
.PP
147
The following example code is \fIincorrect\fR because it tries to
148
create immediate children of the LabelFrame \fB\.f\fR:
149
.PP
150
.nf
151
    tixLabelFrame .f
152
    button .f.b \-text hi
153
    pack .f.b
154
.fi
155
'
156
'
157
'----------------------------------------------------------------------
158
.SH WIDGET COMMANDS
159
.PP
160
'
161
The \fBtixLabelFrame\fR command creates a new Tcl command whose
162
name is the same as the path name of the LabelFrame's
163
window. This command may be used to invoke various operations on the
164
widget. It has the following general form:
165
'
166
.DS C
167
'
168
\fIpathName option \fR?\fIarg arg ...\fR?
169
.PP
170
.DE
171
'
172
\fIPathName\fR is the name of the command, which is the same as the
173
LabelFrame widget's path name. \fIOption\fR and the
174
\fIarg\fRs determine the exact behavior of the command. The following
175
commands are possible for LabelFrame widgets:
176
'
177
.TP
178
\fIpathName \fBcget\fR \fIoption\fR
179
'
180
Returns the current value of the configuration option given by
181
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
182
\fBtixLabelFrame\fR command.
183
'
184
'
185
.TP
186
'
187
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
188
'
189
Query or modify the configuration options of the widget.  If no
190
\fIoption\fR is specified, returns a list describing all of the
191
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
192
information on the format of this list).  If \fIoption\fR is specified
193
with no \fIvalue\fR, then the command returns a list describing the
194
one named option (this list will be identical to the corresponding
195
sublist of the value returned if no \fIoption\fR is specified).  If
196
one or more \fIoption\-value\fR pairs are specified, then the command
197
modifies the given widget option(s) to have the given value(s); in
198
this case the command returns an empty string.  \fIOption\fR may have
199
any of the values accepted by the \fBtixLabelFrame\fR command.
200
'
201
'
202
'
203
.TP
204
\fIpathName \fBsubwidget \fIname ?args?\fR
205
'
206
When no options are given, this command returns the pathname of the
207
subwidget of the specified name.
208
 
209
When options are given, the widget command of the specified subwidget
210
will be called with these options.
211
'
212
'
213
'
214
'----------------------------------------------------------------------
215
'.SH BINDINGS
216
'.PP
217
'
218
'
219
'
220
'----------------------------------------------------------------------
221
.SH KEYWORDS
222
Tix(n)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.