balloon

NAME
SYNOPSIS
STANDARD OPTIONS
SPECIFIC OPTIONS
DESCRIPTION
OPTION DATABASE NOTES
KEYWORDS

NAME

balloon − provides popup tooltips (balloon help) for Tk widgets

SYNOPSIS

package require balloon

balloon $widget ?options?

STANDARD OPTIONS

−foreground −background −font −relief −borderwidth

See the ‘‘options’’ manual entry for details on the standard options.

SPECIFIC OPTIONS

Command-Line Name:−showdelay

Database Name:

showDelay

Database Class:

ShowDelay

Specifies time of mouse inactivityin the widget in milliseconds, after which tooltip would be shown. Default is 500 ms.

Command-Line Name:−dismissdelay

Database Name:

dismissDelay

Database Class:

DismissDelay

Specifies time of inactivity after tooltip was shown, before it would be dismissed automatically.

DESCRIPTION

This package provides balloon tooltips for Tk widget. You invoke procedure balloon with name of widget and it’s all. User positiones mouse cursor over widget and after specified -showdelay small toplevel window with specified text would appear. At least one of options: -label, -text or -textvariable should be provided.

Procedure balloon doesn’t return anything, and even doesn’t actually create widget.

If -label option is specified, message would be placed into toplevel as label widget. Otherwise message widget is used.

To disable tooltip set invoke balloon command again and specify -1 as -showdelay.

OPTION DATABASE NOTES

All the behavoir of balloon help, excluding text can be controlled via option database. We use class Balloon for the balloon widget and it is always child of widget it describes.

All unlisted options of label/message widget can be set via option database using *.Balloon.Message.option or *.Balloon.Label.option

KEYWORDS

widget, balloon help, tooltip