All Manuals > CAPI User Guide and Reference Manual > 9 Adding Toolbars

NextPrevUpTopContentsIndex

9.5 Specifying tooltips for toolbar buttons

There are two ways to implement tooltips in an interface toolbar:

(example-edit-file "capi/applications/simple-symbol-browser")
(setf print-button
      (make-instance 'toolbar-button
                     :image :std-print
                     :text "Print Something"
                     :help-key 'foo))
 
(defun do-help (interface pane type help-key)
  (when (eq type :tooltip)
    (when (eq help-key 'foo)
      "Tooltip help")))
 
(display
 (make-instance
  'interface
  :toolbar-items
  (list print-button)
  :help-callback 'do-help))

CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017

NextPrevUpTopContentsIndex