Created
May 17, 2019 11:56
-
-
Save eliasfeijo/9565351a00f9f9ac5f6165cfabcd6c16 to your computer and use it in GitHub Desktop.
scroll-area test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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