|
See the file man.macros. NAMEtixBalloon - Create and manipulate tixBalloon widgetsSYNOPSIStixBalloon pathName ?options?SUPER-CLASSThe tixBalloon class is derived from the TixShell class and inherits all the commands, options and subwidgets of its super-class.STANDARD OPTIONSThe Balloon widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.WIDGET-SPECIFIC OPTIONS[-initwait initWait] In milliseconds. Specifies how long the balloon should wait before popping up in a widget. [-state state] Specifies the which help message to display when the mouse pointer enters a widget associated with this balloon. Valid options are both: display both the balloon message and the status bar message, balloon: display only the balloon message, status: display only the status bar message and none: display no messages. [-statusbar statusBar] Specifies the widget to use as the status bar of this balloon. This widget must have a "-text" option. Usually a label widget is used.SUBWIDGETSName: label Class: Label
Name: message Class: Label
DESCRIPTIONThe tixBalloon command creates a new window (given by the pathName argument) and makes it into a Balloon widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the Balloon widget such as its cursor and relief.The Balloon widget can be used to show popped-up messages that describe the functions of the widgets in an application. A Balloon widget can be bound to a number of widgets. When the user moves the cursor inside a widget to which a Balloon widget has been bound, a small pop-up window with a descriptive message will be shown on the screen. WIDGET COMMANDSThe tixBalloon command creates a new Tcl command whose name is the same as the path name of the Balloon widget's window. This command may be used to invoke various operations on the widget. It has the following general form:pathName option ?arg arg ...?
PathName is the name of the command, which is the same as the Balloon
widget's path name. Option and the args determine the exact
behavior of the command. The following commands are possible for Balloon
widgets:
button .b tixBalloon .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"
BINDINGSAfter a widget has be bound to a Balloon widget, when the user moves the cursor into this widget, the Balloon widget is activated: if the -balloonmsg option of this widget is set, the balloon window pops up; if the -statusmsg option of this widget is set, the message will be displayed in the status bar widget.When the user moves the cursor out of the widget, the Balloon widget is de-activated: the balloon window is withdrawn and the status-bar message removed. KEYWORDSTix(n)
Visit the GSP FreeBSD Man Page Interface. |