URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [tags/] [start/] [insight/] [tix/] [man/] [BtnBox.html] - Rev 1765
Compare with Previous | Blame | View Log
<TITLE>tixButtonBox - Create and manipulate Tix ButtonBox widgets</TITLE> <Center><H2>tixButtonBox - Create and manipulate Tix ButtonBox widgets</H2></Center><hr> </pre><H3>SYNOPSIS</H3> <B>tixButtonBox<I> <I>pathName ?<I>options</I></B>? </pre><H3>STANDARD OPTIONS</H3> <P> <pre><code><code><code> <B> anchor background cursor relief borderWidth </B></I> </code></code></code></pre> <P> See the <B>options(n)</B></I> manual entry for details on the standard options. </pre><H3>WIDGET-SPECIFIC OPTIONS</H3> <P> <pre><code><code><code> Name: <B>orientation</B></I> Class: <B>Orientation</B></I> Switch: <B>-orientation</B></I> Alias: <B>-orient</B></I> </code></code></code></pre> <UL> <B>Static Option</B></I>. Specifies the orientation of the button subwidgets. Only the values "horizontal" and "vertical" are recognized. </UL> <P> <pre><code><code><code> Name: <B>padx</B></I> Class: <B>Pad</B></I> Switch: <B>-padx</B></I> </code></code></code></pre> <UL> Specifies the horizontal padding between two neighboring button subwidgets in the ButtonBox widget. </UL> <P> <pre><code><code><code> Name: <B>pady</B></I> Class: <B>Pad</B></I> Switch: <B>-pady</B></I> </code></code></code></pre> <UL> Specifies the vertical padding between two neighboring button subwidgets in the ButtonBox widget. </UL> <P> <pre><code><code><code> Name: <B>state</B></I> Class: <B>State</B></I> Switch: <B>-state</B></I> </code></code></code></pre> <UL> Specifies the state of all the buttons inside the ButtonBox widget. <I>Note</I></B>: Setting this option using the <I>config</I></B> widget command will enable or disable all the buttons subwidgets. Original states of the individual buttons are <I>not</I></B> saved. Only the values "normal" and "disabled" are recognized. </UL> </pre><H3>SUBWIDGETS</H3> <P> All the button subwidgets created as a result of the <B>add</B></I> command can be accessed by the <B>subwidget</B></I> command. They are identified by the <B>buttonName</B></I> parameter to the <B>add</B></I> command. Here is an example: <P> <pre><code><code><code> tixButtonBox .bbox pack .bbox .bbox add eat -text Eat .bbox add sleep -text Sleep .bbox subwidget eat config -fg green .bbox subwidget sleep config -fg red </code></code></code></pre> </pre><HR> </pre><H3>DESCRIPTION</H3> <P> The <B>tixButtonBox</B></I> command creates a new window (given by the <I>pathName</I></B> argument) and makes it into a ButtonBox widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ButtonBox such as its cursor and relief. <P> The ButtonBox widget can be used as a container widget to hold the </pre><H3>WIDGET COMMAND</H3> <P> The <B>tixButtonBox</B></I> command creates a new Tcl command whose name is be used to invoke various operations on the widget. It has the following general form: <pre> <I>pathName option </I></B>?<I>arg arg ...</I></B>? </pre> <I>PathName</I></B> is the name of the command, which is the same as determine the exact behavior of the command. The following commands are possible for ButtonBox widgets: <DL> <DT> <I>pathName <B>add <I>buttonName </I></B>?<I>option value ...</I></B>? </I></B> <DD> Add a new button subwidget with the name <I>buttonName</I></B> into the ButtonBox widget. Additional configuration options can be given to configure the new button subwidget. </DL> <DL> <DT> <I>pathName <B>cget</B></I> <I>option</I></B> </I></B> <DD> Returns the current value of the configuration option given by <I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the <B>tixButtonBox</B></I> command. </DL> <DL> <DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>? </I></B> <DD> Query or modify the configuration options of the widget. If no <I>option</I></B> is specified, returns a list describing all of the available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for information on the format of this list). If <I>option</I></B> is specified with no <I>value</I></B>, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no <I>option</I></B> is specified). If one or more <I>option-value</I></B> pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. <I>Option</I></B> may have any of the values accepted by the <B>tixButtonBox</B></I> command. </DL> <DL> <DT> <I>pathName <B>invoke <I>buttonName</I></B> </I></B> <DD> Invoke the button subwidget with the name </B></I>buttonName</B></I>. </DL> <DL> <DT> <I>pathName <B>subwidget <I> name ?args?</I></B> </I></B> <DD> When no additional arguments are given, returns the pathname of the subwidget of the specified name. When no additional arguments are given, the widget command of the specified subwidget will be called with these parameters. </DL> </pre><H3>BINDINGS</H3> <P> TixButtonBox widgets have no default bindings. The button subwidgets retain their default Tk bindings. </pre><H3>KEYWORDS</H3> Tix(n), Container Widgets <hr><i>Last modified Sun Jan 19 22:34:19 EST 1997 </i> --- <i>Serial 853731295</i>