77 lines
36 KiB
Plaintext
77 lines
36 KiB
Plaintext
1
|
||
|
||
Lisp Library Modules, Medley Release 1.0, TABLEBROWSER
|
||
1
|
||
|
||
Lisp Library Modules, Medley Release 1.0, TABLEBROWSER
|
||
TABLEBROWSER
|
||
1
|
||
|
||
TABLEBROWSER
|
||
1
|
||
|
||
TABLEBROWSER
|
||
6
|
||
|
||
TableBrowser(TABLEBROWSER NIL TableBrowser NIL NIL 243) implements a simple mechanism for building applications that browse certain kinds of tabular data. It supplies a set of basic functions that maintain the window, allowing scrolling and selection of items; the application defines the items, how they print, and any higher-level operations to perform on them. FileBrowser is an example of an application built upon TableBrowser.
|
||
Installation
|
||
1
|
||
|
||
Load TABLEBROWSER.LCOM from the library.
|
||
During program development, you also need to load the declarations file TABLEBROWSERDECLS; this file is not needed when running a compiled application. The file manager coms for the typical application file should thus include the two commands
|
||
(FILES (SYSLOAD) TABLEBROWSER)
|
||
(DECLARE: EVAL@COMPILE DONTCOPY
|
||
(FILES (SOURCE) TABLEBROWSERDECLS)
|
||
User Interface
|
||
1
|
||
|
||
An instance of a TableBrowser application is a window displaying a browser. The browser consists of an ordered set of items. Each item contains an item of application data and some bookkeeping information. TableBrowser maintains the display, supplying generic scrolling, painting, reshaping and selection mechanisms; the application supplies TableBrowser with a set of methods for displaying the contents of an item, what to do when an item is copy selected, etc.
|
||
Review the user interface of the FileBrowser module to get an idea of the selection mechanism and the sort of functionality available from TableBrowser. Briefly, items are selected by clicking in the browser window ÿÿ |