[mcclim-devel] with-output-as-gadget

Christophe Rhodes csr21 at cam.ac.uk
Thu Jul 14 08:30:44 UTC 2005


Hello,

What's the status of with-output-as-gadget?

At the listener,

  (clim:with-output-as-gadget (*standard-output*)
    (clim:with-look-and-feel-realization
        ((clim:frame-manager clim:*application-frame*)
         clim:*application-frame*)
      (clim:labelling (:label "Hello"))))

gets me (interestingly) /half/ a label -- the top half, to be precise.

Meanwhile, attempts to do something a bit more interesting, such as

  (clim:with-output-as-gadget (*standard-output*)
    (clim:with-look-and-feel-realization
        ((clim:frame-manager clim:*application-frame*)
         clim:*application-frame*)
      (clim:labelling (:label "Hello")
        (clim:make-pane 
         'clim:text-field
          :activate-callback (lambda (g) (princ (clim:gadget-value g)))))))

give me NO-APPLICABLE-METHOD on sheet-native-transformation when
called with an argument of NIL, so presumably something's not getting
initialized properly (whose fault is that?  Mine or McCLIM's? :)

(This question is motivated by the potential for implementing UI
elements of forms in the closure web browser -- see
<http://common-lisp.net/project/closure/> -- with clim gadgets; as far
as I can tell, this is a theoretical perfect match, but if there's a
reason that this is a bad idea, that would be good to know too.)

Cheers,

Christophe



More information about the mcclim-devel mailing list