capi::update-automatic-resize-object
What would be a correct place to specify a call to
`capi:set-object-automatic-resize'? Placing it in a `:create-callback'
like this causes problems when trying to put up a representation later:
(capi:define-interface test ()
()
(:panes
(ellipse capi:ellipse))
(:layouts
(pinboard capi:pinboard-layout '(ellipse)))
(:default-initargs
:create-callback (lambda (self)
(with-slots (ellipse pinboard) self
(capi:set-object-automatic-resize
ellipse :height-ratio 1 :width-ratio 1
:pinboard pinboard)))
:visible-min-height 300
:visible-min-width 300))
(capi:display (make-instance 'capi:interface
:layout (make-instance 'capi:simple-layout
:description (list (make-instance test)))))
Would I be justified in expecting the above to work?
--
Madhu