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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [LabFrame.html] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixLabelFrame - Create and manipulate tixLabelFrame widgets</TITLE>
5
<Center><H2>tixLabelFrame - Create and manipulate tixLabelFrame widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixLabelFrame<I> <I>pathName ?<I>options</I></B>?
9
<P>
10
</pre><H3>SUPER-CLASS</H3>
11
The <B>TixLabelFrame</B></I> class is derived from the <B>TixLabelWidget</B></I>
12
class and inherits all the commands, options and subwidgets of its
13
super-class.
14
</pre><H3>STANDARD OPTIONS</H3>
15
The LabelFrame widget supports all the standard options of a frame
16
widget. See the <B>options(n)</B></I> manual entry for details on the
17
standard options.
18
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
19
<P>
20
<pre><code><code><code>
21
Name:           <B>label</B></I>
22
Class:          <B>Label</B></I>
23
Switch:         <B>-label</B></I>
24
</code></code></code></pre>
25
<UL>
26
Specifies the string to display as the label of this LabelFrame widget.
27
</UL>
28
<P>
29
<pre><code><code><code>
30
Name:           <B>labelSide</B></I>
31
Class:          <B>LabelSide</B></I>
32
Switch:         <B>-labelside</B></I>
33
</code></code></code></pre>
34
<UL>
35
Specifies where the label should be displayed relative to the entry
36
subwidget. Valid options are: <B>top</B></I>, <B>left</B></I>, <B>right</B></I>,
37
<B>bottom</B></I>, <B>none</B></I> or <B>acrosstop</B></I>.
38
</UL>
39
<P>
40
<pre><code><code><code>
41
Name:           <B>padX</B></I>
42
Class:          <B>Pad</B></I>
43
Switch:         <B>-padx</B></I>
44
</code></code></code></pre>
45
<UL>
46
Specifies the amount of the horizontal padding around the <B>frame</B></I>
47
subwidget. Must be a valid non-negative integer number.
48
</UL>
49
<P>
50
<pre><code><code><code>
51
Name:           <B>padY</B></I>
52
Class:          <B>Pad</B></I>
53
Switch:         <B>-pady</B></I>
54
</code></code></code></pre>
55
<UL>
56
Specifies the amount of the vertical padding around the <B>frame</B></I>
57
subwidget.
58
</UL>
59
</pre><H3>SUBWIDGETS</H3>
60
<P>
61
<pre><code><code><code>
62
Name:           <B>frame</B></I>
63
Class:          <B>Frame</B></I>
64
</code></code></code></pre>
65
<UL>
66
The frame subwidget.
67
</UL>
68
<P>
69
<pre><code><code><code>
70
Name:           <B>label</B></I>
71
Class:          <B>Label</B></I>
72
</code></code></code></pre>
73
<UL>
74
The label subwidget.
75
</UL>
76
</pre><HR>
77
</pre><H3>DESCRIPTION</H3>
78
<P>
79
The <B>tixLabelFrame</B></I> command creates a new window (given by
80
the <I>pathName</I></B> argument) and makes it into a LabelFrame
81
widget. Additional options, described above, may be specified on the
82
command line or in the option database to configure aspects of the
83
LabelFrame such as its cursor and relief.
84
</pre><H3>CREATING WIDGETS INSIDE A LABELFRAME</H3>
85
<P>
86
The LabelFrame widget packages a frame widget and a label into one
87
mega widget. To create widgets inside a LabelFrame widget, one must
88
create the new widgets relative to the <B>frame</B></I> subwidget and
89
manage them inside the <B>frame</B></I> subwidget. An error will be
90
generated if one tries to create widgets as immediate children of the
91
LabelFrame. For example: the following is correct code, which creates
92
new widgets inside the frame subwidget:
93
<P>
94
<pre><code><code><code>
95
    tixLabelFrame .f
96
    set f [.f subwidget frame]
97
    button $f.b -text hi
98
    pack $f.b
99
</code></code></code></pre>
100
<P>
101
The following example code is <I>incorrect</I></B> because it tries to
102
create immediate children of the LabelFrame <B>\.f</B></I>:
103
<P>
104
<pre><code><code><code>
105
    tixLabelFrame .f
106
    button .f.b -text hi
107
    pack .f.b
108
</code></code></code></pre>
109
</pre><H3>WIDGET COMMANDS</H3>
110
<P>
111
The <B>tixLabelFrame</B></I> command creates a new Tcl command whose
112
window. This command may be used to invoke various operations on the
113
widget. It has the following general form:
114
<pre>
115
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
116
<P>
117
</pre>
118
<I>PathName</I></B> is the name of the command, which is the same as the
119
<I>arg</I></B>s determine the exact behavior of the command. The following
120
commands are possible for LabelFrame widgets:
121
<DL>
122
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
123
</I></B>
124
<DD> Returns the current value of the configuration option given by
125
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
126
<B>tixLabelFrame</B></I> command.
127
</DL>
128
<DL>
129
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
130
</I></B>
131
<DD> Query or modify the configuration options of the widget.  If no
132
<I>option</I></B> is specified, returns a list describing all of the
133
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
134
information on the format of this list).  If <I>option</I></B> is specified
135
with no <I>value</I></B>, then the command returns a list describing the
136
one named option (this list will be identical to the corresponding
137
sublist of the value returned if no <I>option</I></B> is specified).  If
138
one or more <I>option-value</I></B> pairs are specified, then the command
139
modifies the given widget option(s) to have the given value(s); in
140
this case the command returns an empty string.  <I>Option</I></B> may have
141
any of the values accepted by the <B>tixLabelFrame</B></I> command.
142
</DL>
143
<DL>
144
<DT> <I>pathName <B>subwidget <I>name ?args?</I></B>
145
</I></B>
146
<DD> When no options are given, this command returns the pathname of the
147
subwidget of the specified name.
148
 
149
When options are given, the widget command of the specified subwidget
150
will be called with these options.
151
</DL>
152
</pre><H3>KEYWORDS</H3>
153
Tix(n)
154
<hr><i>Last modified Sun Jan 19 22:34:31 EST 1997 </i> ---
155
<i>Serial 853731301</i>

powered by: WebSVN 2.1.0

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