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

Re: view drawing question



;; overriding a group object's view-draw-contents to draw say a border, you
;; need to make sure to call-next method to draw the subviews like this
;; 
;; (defmethod view-draw-contents :around (self group-object)
;;   ;; draw the border here
;;   (call-next-method) ; to draw the subviews after the border (i.e. on top)
;;   )

Silly me, forgetting to (call-next-method). That did do the trick,
thanks.  I'm still slightly puzzled since I was explicitly drawing the
subview contents after drawing the group view, but I guess I just
overlooked the method combinations. Thanks!

-Adam

-- 
Adam Alpern, Hampshire College
ala@neural.hampshire.edu