package require twoTooltip
?1.0? two_tooltip
command
two_tooltip
shows little help messages if the mouse pointer rests a minimum amount
of time over a widget. A second (usually longer) help message can be used
to set the status bar. This second message sets the global variabel two_ttInfo.
two_tooltip
command takes the following commands (as the
first argument):
two_tooltip enable
- Enables tooltips. This is the default.
two_tooltip on
- Same as
two_tooltip enable
.two_tooltip disable
oroff
- Disables tooltips. Only affects the toplevel widgets - the global variable two_ttInfo will still be set.
two_tooltip off
- Same as
two_tooltip disable
.two_tooltip delay
?millisecs?- Query or set the delay. The delay is in milliseconds and must be at least 50. Returns the delay.
two_tooltip duration
?millisecs?- Query or set the duration of the tooltip (how long is the tooltip visible). The duration is in milliseconds and must be at least 50. Returns the duration.
two_tooltip <widget>
?options?- Add tooltip messages to widget. options can be
-index
index- Used for menus: apply this tooltip (message2) to the entry at position index.
-tip
message1- Used for the tooltip message in the toplevel widgets (with some delay).
-info
message2- Used to set the global variable two_ttInfo (without delay). Defaults to message1.
No toplevel tooltips will be shown for menu entries (only the variable two_ttInfo will be set).
two_ttInfo
contains the info message: use it in a status bar!
._two_tooltip
) contains a label.