Re: Arrow buttons

"ahz (as ahz at snafu dot de)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
Am 08.02.2025 um 18:10 schrieb Didier Verna (as didier at didierverna 
dot net):
> suppose I have a pane in which I need to display stuff from a set of N 
> possibilities. I would like to have something on top of the pane 
> displaying the current index i of what's displayed, and some kind of 
> arrow buttons allowing me to switch to the ith-1 or ith+1 choice. 
> Something that would look more or less like this: < i > the left/right 
> arrow buttons being clickable. Is something like that already 
> available? Or how should I proceed?

I'm not aware of an existing CAPI element for this. But it seems to be 
not hard to build a first try with the interface builder (Using LWW 6.01).
Of course it will need some  polishing.

Regards
Andreas

(capi:define-interface interface-1 ()
   ()
   (:panes
    (push-button-1
     capi:push-button
     :text "<"
     :selection-callback #'(lambda (data interface) 
(capi:display-message "Pressed >" data)))
    (display-pane-1
     capi:display-pane
     :text "1"
     :visible-min-width 100)
    (push-button-2
     capi:push-button
     :text ">"
     :selection-callback #'(lambda (data interface) 
(capi:display-message "Pressed >" data))))
   (:layouts
    (row-layout-1
     capi:row-layout
     '(push-button-1 display-pane-1 push-button-2)))
   (:default-initargs
    :layout 'row-layout-1
    :title "Interface-1"))


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.