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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [Balloon.html] - Blame information for rev 1782

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

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixBalloon - Create and manipulate tixBalloon widgets</TITLE>
5
<Center><H2>tixBalloon - Create and manipulate tixBalloon widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixBalloon<I> <I>pathName ?<I>options</I></B>?
9
<P>
10
</pre><H3>SUPER-CLASS</H3>
11
The <B>tixBalloon</B></I> class is derived from the <B>TixShell</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 Balloon widget supports all the standard options of a frame widget.
16
See the <B>options(n)</B></I> manual entry for details on the standard options.
17
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
18
<P>
19
<pre><code><code><code>
20
Name:           <B>initWait</B></I>
21
Class:          <B>InitWait</B></I>
22
Switch:         <B>-initwait</B></I>
23
</code></code></code></pre>
24
<UL>
25
In milliseconds. Specifies how long the balloon should wait before
26
popping up in a widget.
27
</UL>
28
<P>
29
<pre><code><code><code>
30
Name:           <B>state</B></I>
31
Class:          <B>State</B></I>
32
Switch:         <B>-state</B></I>
33
</code></code></code></pre>
34
<UL>
35
Specifies the which help message to display when the mouse pointer
36
enters a widget associated with this balloon. Valid options are
37
<B>both</B></I>: display both the balloon message and the status bar
38
message, <B>balloon</B></I>: display only the balloon message,
39
<B>status</B></I>: display only the status bar message and <B>none</B></I>:
40
display no messages.
41
</UL>
42
<P>
43
<pre><code><code><code>
44
Name:           <B>statusBar</B></I>
45
Class:          <B>statusBar</B></I>
46
Switch:         <B>-statusbar</B></I>
47
</code></code></code></pre>
48
<UL>
49
Specifies the widget to use as the status bar of this balloon. This
50
widget must have a "-text" option. Usually a label widget is used.
51
</UL>
52
</pre><H3>SUBWIDGETS</H3>
53
<P>
54
<pre><code><code><code>
55
Name:           <B>label</B></I>
56
Class:          <B>Label</B></I>
57
</code></code></code></pre>
58
<UL>
59
The label widget that shows the little arrow bitmap in the pop-up
60
balloon window.
61
</UL>
62
<P>
63
<pre><code><code><code>
64
Name:           <B>message</B></I>
65
Class:          <B>Label</B></I>
66
</code></code></code></pre>
67
<UL>
68
The message widget that shows the descriptive message in the the pop-up
69
balloon window.
70
</UL>
71
</pre><HR>
72
</pre><H3>DESCRIPTION</H3>
73
<P>
74
The <B>tixBalloon</B></I> command creates a new window (given by the
75
<I>pathName</I></B> argument) and makes it into a Balloon widget.
76
Additional options, described above, may be specified on the command
77
line or in the option database to configure aspects of the
78
Balloon widget such as its cursor and relief.
79
 
80
The Balloon widget can be used to show popped-up messages
81
that describe the functions of the widgets in an application. A
82
Balloon widget can be bound to a number of widgets. When the user
83
moves the cursor inside a widget to which a Balloon widget has been
84
bound, a small pop-up window with a descriptive message will be shown
85
on the screen.
86
</pre><H3>WIDGET COMMANDS</H3>
87
<P>
88
The <B>tixBalloon</B></I> command creates a new Tcl command whose name is
89
command may be used to invoke various operations on the widget. It has
90
the following general form:
91
<pre>
92
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
93
<P>
94
</pre>
95
<I>PathName</I></B> is the name of the command, which is the same as the
96
determine the exact behavior of the command. The following commands
97
are possible for Balloon widgets:
98
<DL>
99
<DT> <I>pathName <B>bind</B></I> widget ?<I>option value ... </I></B>?
100
</I></B>
101
<DD> Binds the Balloon widget to the <I>widget</I></B>. The messages to be
102
shown can be passed as extra arguments to this command in <I>option
103
value</B></I> pairs. Possible options: <B>-balloonmsg</B></I> specifies the
104
string to show on the pop-up balloon window; <B>-statusmsg</B></I>
105
specifies the string to show on the status bar; <B>-msg</B></I> specifies a
106
string to show on both the balloon window and the stats bar window.
107
When used together, the <B>-msg</B></I> option has a lower precedence than
108
the <B>-balloonmsg</B></I> and <B>-statusmsg</B></I> options.
109
 
110
The <B>bind</B></I> command can also be used to change the messages after
111
the initial bindings were set. Example:
112
</DL>
113
<P>
114
<pre><code><code><code>
115
        button .b
116
        tixBalloon .bal
117
 
118
        # Add balloon binding
119
        .bal bind .b -msg "This is a button"
120
 
121
        ...
122
 
123
        # Change the balloon binding
124
        .bal bind .b -msg "This is a useful button"
125
</code></code></code></pre>
126
<DL>
127
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
128
</I></B>
129
<DD> Returns the current value of the configuration option given by
130
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
131
<B>tixBalloon</B></I> command.
132
</DL>
133
<DL>
134
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
135
</I></B>
136
<DD> Query or modify the configuration options of the widget.  If no
137
<I>option</I></B> is specified, returns a list describing all of the
138
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
139
information on the format of this list).  If <I>option</I></B> is specified
140
with no <I>value</I></B>, then the command returns a list describing the
141
one named option (this list will be identical to the corresponding
142
sublist of the value returned if no <I>option</I></B> is specified).  If
143
one or more <I>option-value</I></B> pairs are specified, then the command
144
modifies the given widget option(s) to have the given value(s); in
145
this case the command returns an empty string.  <I>Option</I></B> may have
146
any of the values accepted by the <B>tixBalloon</B></I> command.
147
</DL>
148
<DL>
149
<DT> <I>pathName <B>unbind<I> widget</I></B>
150
</DL>
151
<DL>
152
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
153
</I></B>
154
<DD> When no options are given, this command returns the pathname of the
155
subwidget of the specified name.
156
 
157
When options are given, the widget command of the specified subwidget
158
will be called with these options.
159
</DL>
160
</pre><H3>BINDINGS</H3>
161
<P>
162
After a widget has be bound to a Balloon widget, when the user moves
163
the cursor into this widget, the Balloon widget is activated: if the
164
<B>-balloonmsg</B></I> option of this widget is set, the balloon window
165
pops up; if the <B>-statusmsg</B></I> option of this widget is set, the
166
message will be displayed in the status bar widget.
167
<P>
168
When the user moves the cursor out of the widget, the Balloon widget
169
is de-activated: the balloon window is withdrawn and the status-bar
170
message removed.
171
</pre><H3>KEYWORDS</H3>
172
Tix(n)
173
<hr><i>Last modified Sun Jan 19 22:34:19 EST 1997 </i> ---
174
<i>Serial 853731294</i>

powered by: WebSVN 2.1.0

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