URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [insight/] [tix/] [man/] [Balloon.n] - Rev 1782
Compare with Previous | Blame | View Log
'\"'\" Copyright (c) 1996, Expert Interface Technologies'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" The file man.macros and some of the macros used by this file are'\" copyrighted: (c) 1990 The Regents of the University of California.'\" (c) 1994-1995 Sun Microsystems, Inc.'\" The license terms of the Tcl/Tk distrobution are in the file'\" license.tcl..so man.macros'----------------------------------------------------------------------.HS tixBalloon tix 4.0.BS'''----------------------------------------------------------------------.SH NAMEtixBalloon \- Create and manipulate tixBalloon widgets''''----------------------------------------------------------------------.SH SYNOPSIS\fBtixBalloon\fI \fIpathName ?\fIoptions\fR?'''----------------------------------------------------------------------.PP.SH SUPER-CLASSThe \fBtixBalloon\fR class is derived from the \fBTixShell\fRclass and inherits all the commands, options and subwidgets of itssuper-class.''----------------------------------------------------------------------.SH "STANDARD OPTIONS"'The Balloon widget supports all the standard options of a frame widget.See the \fBoptions(n)\fR manual entry for details on the standard options.'''----------------------------------------------------------------------.SH "WIDGET-SPECIFIC OPTIONS"''----------BEGIN.LP.nfName: \fBinitWait\fRClass: \fBInitWait\fRSwitch: \fB\-initwait\fR.fi.IPIn milliseconds. Specifies how long the balloon should wait beforepopping up in a widget.'----------END''----------BEGIN.LP.nfName: \fBstate\fRClass: \fBState\fRSwitch: \fB\-state\fR.fi.IPSpecifies the which help message to display when the mouse pointerenters a widget associated with this balloon. Valid options are\fBboth\fR: display both the balloon message and the status barmessage, \fBballoon\fR: display only the balloon message,\fBstatus\fR: display only the status bar message and \fBnone\fR:display no messages.'----------END'''----------BEGIN.LP.nfName: \fBstatusBar\fRClass: \fBstatusBar\fRSwitch: \fB\-statusbar\fR.fi.IPSpecifies the widget to use as the status bar of this balloon. Thiswidget must have a "-text" option. Usually a label widget is used.'----------END''----------------------------------------------------------------------.SH SUBWIDGETS'----------BEGIN.LP.nfName: \fBlabel\fRClass: \fBLabel\fR.fi.IPThe label widget that shows the little arrow bitmap in the pop-upballoon window.'----------END''----------BEGIN.LP.nfName: \fBmessage\fRClass: \fBLabel\fR.fi.IPThe message widget that shows the descriptive message in the the pop-upballoon window.'----------END'.BE'''----------------------------------------------------------------------.SH DESCRIPTION'.PP'The \fBtixBalloon\fR command creates a new window (given by the\fIpathName\fR argument) and makes it into a Balloon widget.Additional options, described above, may be specified on the commandline or in the option database to configure aspects of theBalloon widget such as its cursor and relief.The Balloon widget can be used to show popped-up messagesthat describe the functions of the widgets in an application. ABalloon widget can be bound to a number of widgets. When the usermoves the cursor inside a widget to which a Balloon widget has beenbound, a small pop-up window with a descriptive message will be shownon the screen.''----------------------------------------------------------------------.SH WIDGET COMMANDS.PP'The \fBtixBalloon\fR command creates a new Tcl command whose name isthe same as the path name of the Balloon widget's window. Thiscommand may be used to invoke various operations on the widget. It hasthe following general form:'.DS C'\fIpathName option \fR?\fIarg arg ...\fR?.PP.DE'\fIPathName\fR is the name of the command, which is the same as theBalloon widget's path name. \fIOption\fR and the \fIarg\fRsdetermine the exact behavior of the command. The following commandsare possible for Balloon widgets:.TP\fIpathName \fBbind\fR widget ?\fIoption value ... \fR?'Binds the Balloon widget to the \fIwidget\fR. The messages to beshown can be passed as extra arguments to this command in \fIoptionvalue\fR pairs. Possible options: \fB\-balloonmsg\fR specifies thestring to show on the pop-up balloon window; \fB\-statusmsg\fRspecifies the string to show on the status bar; \fB\-msg\fR specifies astring to show on both the balloon window and the stats bar window.When used together, the \fB\-msg\fR option has a lower precedence thanthe \fB\-balloonmsg\fR and \fB\-statusmsg\fR options.The \fBbind\fR command can also be used to change the messages afterthe initial bindings were set. Example:.PP.nfbutton .btixBalloon .bal# Add balloon binding.bal bind .b -msg "This is a button"...# Change the balloon binding.bal bind .b -msg "This is a useful button".fi'.TP\fIpathName \fBcget\fR \fIoption\fR'Returns the current value of the configuration option given by\fIoption\fR. \fIOption\fR may have any of the values accepted by the\fBtixBalloon\fR command.'.TP'\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?'Query or modify the configuration options of the widget. If no\fIoption\fR is specified, returns a list describing all of theavailable options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR forinformation on the format of this list). If \fIoption\fR is specifiedwith no \fIvalue\fR, then the command returns a list describing theone named option (this list will be identical to the correspondingsublist of the value returned if no \fIoption\fR is specified). Ifone or more \fIoption\-value\fR pairs are specified, then the commandmodifies the given widget option(s) to have the given value(s); inthis case the command returns an empty string. \fIOption\fR may haveany of the values accepted by the \fBtixBalloon\fR command.'''.TP\fIpathName \fBunbind\fI widget\fR'Cancels the Balloon widget's binding with \fIwidget\fR.''.TP\fIpathName \fBsubwidget \fI name ?args?\fR'When no options are given, this command returns the pathname of thesubwidget of the specified name.When options are given, the widget command of the specified subwidgetwill be called with these options.'''----------------------------------------------------------------------.SH BINDINGS.PPAfter a widget has be bound to a Balloon widget, when the user movesthe cursor into this widget, the Balloon widget is activated: if the\fB\-balloonmsg\fR option of this widget is set, the balloon windowpops up; if the \fB\-statusmsg\fR option of this widget is set, themessage will be displayed in the status bar widget..PPWhen the user moves the cursor out of the widget, the Balloon widgetis de-activated: the balloon window is withdrawn and the status-barmessage removed.''''----------------------------------------------------------------------.SH KEYWORDSTix(n)
