CLIM mail archive

[Prev][Next][Index][Thread]

Problem with format-graph-from-root within present



Dear CLIMers,

I'm having a problem using format-graph-from-root within a 
presentation method. Consider the following example:

(clim:define-presentation-type mr ())

(clim:define-presentation-method clim:present
				 (mr (type mr) stream view &key)
  (clim:format-graph-from-root
    mr
    #'(lambda (object stream) (print (car object) stream))
    #'second
    :stream stream)))

(clim:present '(a ((b) (c) (d))) 'mr)

Evaluating the above in a Lisp Listener (Genera 8.1, CLIM 27.0,
no ECOs) results in the node names being placed properly
but the connecting lines always being drawn at the *top* of
the listener's history.

Evaluating

(clim:format-graph-from-root
  '(a ((b) (c) (d)))
  #'(lambda (object stream) (print (car object) stream))
  #'second
  :stream stream)

results in the expected output.

Any hints/workarounds appreciated,
 
 Toni Beschta


Follow-Ups:

Main Index | Thread Index