Lisp HUG Maillist Archive

CAPI bug?

Hi,

Is there a workaround to avoid the following behaviour of the 
display-pane (see comments, item 3). I think this is a bug in CAPI.

(capi:define-interface test-interface()
   ()
   (:panes
    (doc-view capi:display-pane :text "" :title "Documentation" 
:title-position :frame :visible-min-height '(:character 2) 
:visible-max-width 550))
   (:default-initargs
    :visible-max-width 600))	

(defparameter *test-interface* (capi:find-interface 'test-interface))

;1) works as expected
(with-slots (doc-view) *test-interface*
   (setf (capi:display-pane-text doc-view) "test1"))

;2) ditto
(with-slots (doc-view) *test-interface*
   (setf (capi:display-pane-text doc-view) (make-string 20 
:initial-element #\d)))

;3) display-pane behaves correctly (divides the text and all), but as a 
side effect
; extends the whole interface according to the total length of the 
string, also
; ignoring the constraints.
(with-slots (doc-view) *test-interface*
   (setf (capi:display-pane-text doc-view) (make-string 260 
:initial-element #\d)))


Re: CAPI bug?

Unable to parse email body. Email id is 2595

Updated at: 2020-12-10 08:55 UTC