Changeset main,74 for main


Ignore:
Timestamp:
11/30/2007 05:24:25 AM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20071130052425-7zefu1mg36np1q63
Message:

Change Space to Nul for background character.
Allow background to be specified as something to be eval'd (not just literals).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/form.lisp

    r64 r74  
    6363                  :display-width ,display-width :data-width ,data-width
    6464                  :read-only ,read-only
    65                   :inactive-background ',inactive-background
    66                   :active-background ',active-background))
     65                  :inactive-background (list ,@inactive-background)
     66                  :active-background (list ,@active-background)))
    6767
    6868(defun make-numberbox-def (row column name display-width
     
    7676                  :display-width ,display-width :data-width ,data-width
    7777                  :precision ,precision :read-only ,read-only
    78                   :inactive-background ',inactive-background
    79                   :active-background ',active-background))
     78                  :inactive-background (list ,@inactive-background)
     79                  :active-background (list ,@active-background)))
    8080
    8181(defun parse-widget-form (widget-form)
     
    9191(defmacro defform (name (&rest options) &body widgets)
    9292  "Each widget is one of:
    93 - (:label row column text)
    94 - (:textbox row column name display-width &key data-width read-only)
    95 - (:numberbox row column name display-width &key data-width precision read-only)"
    96   (destructuring-bind (&key ((:inactive-widget-background *default-inactive-widget-background*) '(#\Space 0))
    97                             ((:active-widget-background *default-active-widget-background*) '(#\Space 0)))
     93* (:label row column text)
     94* (:textbox row column name display-width &key data-width read-only)
     95* (:numberbox row column name display-width &key data-width precision read-only)"
     96  (destructuring-bind (&key ((:inactive-widget-background *default-inactive-widget-background*) '(#\Nul 0))
     97                            ((:active-widget-background *default-active-widget-background*) '(#\Nul 0)))
    9898      options
    9999    (with-gensyms (elements)
Note: See TracChangeset for help on using the changeset viewer.