logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tipstack - Stacked tooltips

Bugs, Ideas, Feedback

       This  document,  and  the package it describes, will undoubtedly contain bugs and other problems.  Please
       report such in the category tooltip of the TklibTrackers [http://core.tcl.tk/tklib/reportlist].   Please
       also report any ideas for enhancements you may have for either package and/or documentation.

Commands

::tipstack::pushwidget ?-indexindex? text
              Push a new text to the tooltip for the widget.  In case of a list widget use

              -index ...

       to     tooltip for.

              The result of the command is the empty string

       ::tipstack::popwidget ?-indexindex?
              Pop the current tooltip for the widget from the stack and restore the previous text.   This  is  a
              no-operation if this would leave an empty stack behind.  In other words, the baseline tooltip text
              cannot be popped of.  In case of a list widget use

              -index ...

       to     tooltip for.

              The result of the command is the empty string

       ::tipstack::clearwidget ?-indexindex?
              Clear the stack for the widget and restore back to the baseline.  In case of a list widget use

              -index ...

       to     tooltip for.

              The result of the command is the empty string

       ::tipstack::defwidgettext ...
              Perform multiple pushes for a number of independent widgets in a single call.  This command cannot
              be  used  for  list  widgets, as it does not allow the passing of the necessary index information.
              Use with menus is not possible either.

              The result of the command is the empty string

       ::tipstack::defsubbasewidgettext ...
              This command is a variant of ::tipstack::def where all the widgets to push to  are  subwidgets  of
              the base. This is good for mega-widgets.

              Note that either each widget has to be specified with a proper leading dot (.), or the base has to
              be specigfied with a trailing dot.

              The result of the command is the empty string

       ::tipstack::clearsubbase
              This command is a variant of ::tipstack::clear which clears all child widgets of the base text was
              pushed to.  Use with menus is not possible.

              The result of the command is the empty string

Description

       This  package extends the functionality of package tooltip.  It provides a dynamic stack of tip texts per
       widget. This enables dynamic transient changes to the tips, for example to temporarily replace a standard
       explanation of a field with an error message.

Keywords

       balloon, help, hover, tipstack

Name

       tipstack - Stacked tooltips

Synopsis

       package require Tcl8.5

       package require msgcat1.3

       package require tooltip?1.7?

       package require tipstack?1.0.1?::tipstack::pushwidget ?-indexindex? text::tipstack::popwidget ?-indexindex?

       ::tipstack::clearwidget ?-indexindex?

       ::tipstack::defwidgettext ...

       ::tipstack::defsubbasewidgettext ...

       ::tipstack::clearsubbase

________________________________________________________________________________________________________________

return

See Also