Skip to content

Instantly share code, notes, and snippets.

@eliasfeijo
Created May 17, 2019 11:56
Show Gist options
  • Save eliasfeijo/9565351a00f9f9ac5f6165cfabcd6c16 to your computer and use it in GitHub Desktop.
Save eliasfeijo/9565351a00f9f9ac5f6165cfabcd6c16 to your computer and use it in GitHub Desktop.
scroll-area test
(button :label "Top-Level Button"
:on-click (lambda (window)
(let* ((container (find-element "container" window))
(text (format nil "text~d" *counter*))
(label (make-instance 'label :text text))
(scroll-position (area-scroll-position container)))
(format t "~%scroll-position: ~a" scroll-position)
(bodge-util:adopt container label)
(setf *counter* (incf *counter*)))))
(scroll-area :name "container"
:height 100))
(defparameter *counter* 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment