home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / CLX / demo / README < prev    next >
Encoding:
Text File  |  1990-05-22  |  1.5 KB  |  48 lines

  1. This directory contains some code for testing and showing off CLX.
  2.  
  3. MENU.LISP:
  4.  
  5.   This file demonstrates a simple menu implementation described in
  6.   Kimbrough, Kerry, "Windows to the Future", Lisp Pointers, Oct-Nov, 1987.
  7.   Try calling 
  8.  
  9.   (xlib::just-say-lisp "")
  10.   (xlib::pop-up "" '("chocolate" "strawberry" "asparagus"))
  11.  
  12. HELLO.LISP:
  13.  
  14.   Pops up a window displaying a string. Click on it to make it
  15.   go away. Try calling 
  16.  
  17.   (xlib::hello-world "" :string "This space for rent.")
  18.  
  19.  
  20. BEZIER.LISP,
  21. ZOID.LISP:
  22.  
  23.   Defines some extensions for drawing bezier splines and trapezoids,
  24.   respectively.
  25.  
  26.   Bezier is a demo of how to use protocol extensions.  Since this demo
  27.   defines CLX stubs for the X_PolyBezier X request defined in the
  28.   "bezier" extension, you have to have the macros and bufmac files
  29.   loaded, which define macros needed to compile CLX stubs.  The macros
  30.   and bufmac files aren't normally loaded by load-clx, as they are only
  31.   needed to compile CLX stubs for protocol requests, and aren't need to
  32.   just use CLX.  You can load them by specifying :macros-p t to
  33.   load-clx.
  34.  
  35.   Lucid users: Remember that CLX stubs for protocol requests in lucid
  36.   lisp have to be compiled with the production compiler, so this file
  37.   has to be compiled with the production compiler.
  38.  
  39. BEZIERTEST.LISP:
  40.   Compile and load bezier.lisp, and try:
  41.  
  42.   (xlib::bezier-test "" "/usr/X.V11R1/extensions/test/datafile")
  43.  
  44.   The second argument is a file containing a picture described as 
  45.   a set of splines. Unfortunately, this is not currently part of the
  46.   CLX release.
  47.  
  48.