A tooltip is a temporary window containing text which appears when the user positions the cursor over an element for a period. The appearance is slightly delayed and the text is usually short.
Tooltips are often used for brief help text and identification of GUI elements. For example the "X" button alongside the Filter area in the Process Browser tool in the LispWorks IDE has a tooltip "Clear filter". Tooltips can also be used to complete the display of partially hidden text, for example in the Debugger tool Backtrace view where the display of long variable values might be truncated.
You can implement tooltips for output-panes, collections, elements, menu-items and toolbar-buttons.
To implement tooltips in an output-pane, call display-tooltip via a
:motion gesture in the pane's
. The tooltip text might depend on the cursor position or, in the case of a pinboard-layout, on the pinboard object under the cursor.
:help-callback initarg in an interface, along with a suitable
:help-key initarg for each of its collections, elements and menu-items that should have a tooltip.
should return a suitable string (which will be the tooltip text) when passed
:tooltip and the
You can implement tooltips for a toolbar-button exactly as for collections and so on as described in Tooltips for collections, elements and menu items. See the example in Specifying tooltips for toolbar buttons.
However, if your toolbar-buttons are grouped in a toolbar-component it is simpler to supply the
should be a list containing a string giving the tooltip text of each button in the component. See this example:
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015