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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [BtnBox.html] - Blame information for rev 1774

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

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixButtonBox - Create and manipulate Tix ButtonBox widgets</TITLE>
5
<Center><H2>tixButtonBox - Create and manipulate Tix ButtonBox widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixButtonBox<I> <I>pathName ?<I>options</I></B>?
9
</pre><H3>STANDARD OPTIONS</H3>
10
<P>
11
<pre><code><code><code>
12
<B>
13
anchor  background      cursor
14
relief  borderWidth
15
</B></I>
16
</code></code></code></pre>
17
<P>
18
See the <B>options(n)</B></I> manual entry for details on the standard options.
19
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
20
<P>
21
<pre><code><code><code>
22
Name:           <B>orientation</B></I>
23
Class:          <B>Orientation</B></I>
24
Switch:         <B>-orientation</B></I>
25
Alias:          <B>-orient</B></I>
26
</code></code></code></pre>
27
<UL>
28
<B>Static Option</B></I>. Specifies the orientation of the button
29
subwidgets. Only the values "horizontal" and "vertical" are recognized.
30
</UL>
31
<P>
32
<pre><code><code><code>
33
Name:           <B>padx</B></I>
34
Class:          <B>Pad</B></I>
35
Switch:         <B>-padx</B></I>
36
</code></code></code></pre>
37
<UL>
38
Specifies the horizontal padding between two neighboring button
39
subwidgets in the ButtonBox widget.
40
 
41
</UL>
42
<P>
43
<pre><code><code><code>
44
Name:           <B>pady</B></I>
45
Class:          <B>Pad</B></I>
46
Switch:         <B>-pady</B></I>
47
</code></code></code></pre>
48
<UL>
49
Specifies the vertical padding between two neighboring button
50
subwidgets in the ButtonBox widget.
51
</UL>
52
<P>
53
<pre><code><code><code>
54
Name:           <B>state</B></I>
55
Class:          <B>State</B></I>
56
Switch:         <B>-state</B></I>
57
</code></code></code></pre>
58
<UL>
59
Specifies the state of all the buttons inside the ButtonBox widget.
60
 
61
<I>Note</I></B>:
62
Setting this option using the <I>config</I></B> widget command will enable
63
or disable all the buttons subwidgets. Original states of the
64
individual buttons are <I>not</I></B> saved. Only the values "normal" and
65
"disabled" are recognized.
66
</UL>
67
</pre><H3>SUBWIDGETS</H3>
68
<P>
69
All the button subwidgets created as a result of the <B>add</B></I> command
70
can be accessed by the <B>subwidget</B></I> command. They are identified by
71
the <B>buttonName</B></I> parameter to the <B>add</B></I> command. Here is an
72
example:
73
<P>
74
<pre><code><code><code>
75
        tixButtonBox .bbox
76
        pack .bbox
77
        .bbox add eat   -text Eat
78
        .bbox add sleep -text Sleep
79
        .bbox subwidget eat   config -fg green
80
        .bbox subwidget sleep config -fg red
81
</code></code></code></pre>
82
</pre><HR>
83
</pre><H3>DESCRIPTION</H3>
84
<P>
85
The <B>tixButtonBox</B></I> command creates a new window (given by the
86
<I>pathName</I></B> argument) and makes it into a ButtonBox
87
widget. Additional options, described above, may be specified on the
88
command line or in the option database to configure aspects of the
89
ButtonBox such as its cursor and relief.
90
<P>
91
The ButtonBox widget can be used as a container widget to hold the
92
</pre><H3>WIDGET COMMAND</H3>
93
<P>
94
The <B>tixButtonBox</B></I> command creates a new Tcl command whose name is
95
be used to invoke various operations on the widget. It has the
96
following general form:
97
<pre>
98
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
99
 
100
</pre>
101
<I>PathName</I></B> is the name of the command, which is the same as
102
determine the exact behavior of the command.  The following
103
commands are possible for ButtonBox widgets:
104
<DL>
105
<DT> <I>pathName <B>add <I>buttonName </I></B>?<I>option value ...</I></B>?
106
</I></B>
107
<DD> Add a new button subwidget with the name <I>buttonName</I></B> into
108
the ButtonBox widget. Additional configuration options can be given to
109
configure the new button subwidget.
110
</DL>
111
<DL>
112
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
113
</I></B>
114
<DD> Returns the current value of the configuration option given by
115
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
116
<B>tixButtonBox</B></I> command.
117
</DL>
118
<DL>
119
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
120
</I></B>
121
<DD> Query or modify the configuration options of the widget.  If no
122
<I>option</I></B> is specified, returns a list describing all of the
123
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
124
information on the format of this list). If <I>option</I></B> is specified
125
with no <I>value</I></B>, then the command returns a list describing the
126
one named option (this list will be identical to the corresponding
127
sublist of the value returned if no <I>option</I></B> is specified).  If
128
one or more <I>option-value</I></B> pairs are specified, then the command
129
modifies the given widget option(s) to have the given value(s); in
130
this case the command returns an empty string. <I>Option</I></B> may have
131
any of the values accepted by the <B>tixButtonBox</B></I> command.
132
</DL>
133
<DL>
134
<DT> <I>pathName <B>invoke <I>buttonName</I></B>
135
</I></B>
136
<DD> Invoke the button subwidget with the name </B></I>buttonName</B></I>.
137
</DL>
138
<DL>
139
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
140
</I></B>
141
<DD> When no additional arguments are given, returns the pathname of the
142
subwidget of the specified name.
143
 
144
When no additional arguments are given, the widget command of the
145
specified subwidget will be called with these parameters.
146
</DL>
147
</pre><H3>BINDINGS</H3>
148
<P>
149
TixButtonBox widgets have no default bindings. The button subwidgets
150
retain their default Tk bindings.
151
</pre><H3>KEYWORDS</H3>
152
Tix(n), Container Widgets
153
<hr><i>Last modified Sun Jan 19 22:34:19 EST 1997 </i> ---
154
<i>Serial 853731295</i>

powered by: WebSVN 2.1.0

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