>
LispWorks IDE User Guide>
20 Example: Using The Interface Builder>
20.6 Defining the callbacks 20.6.1 Callbacks to update the display paneOne main function, update-selection
, serves to update the display pane whenever selections are made in the graph pane or the list panel.
(defun update-selection (type data interface)
(setf (capi:display-pane-text (selection-reader interface))
(format nil "~A ~A" data type)))
The following three functions are the callbacks specified whenever a select, retract or extend action is performed in either the list panel or the graph pane. Each function is named according to the type of callback it is used for, and it simply calls update-selection
with an additional argument denoting the callback type.
(defun update-selection-select (&rest args)
(apply 'update-selection "selected" args))
(defun update-selection-retract (&rest args)
(apply 'update-selection "deselected" args))
(defun update-selection-extend (&rest args)
(apply 'update-selection "extended" args))
LispWorks IDE User Guide (Windows version) - 25 Nov 2011
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4