Re: CAPI pane children (was Calling specific method)
"Tim Bradshaw (as tfb at cley dot com)" <[email protected]> Sun, 19 Apr 2026 11:10:04 +0100
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
On 18 Apr 2026, at 17:29, Erik Ronström (as erik dot ronstrom at doremir dot com) <[email protected]> wrote: > > A number of times I have found myself in a situation where I would like to look at or traverse the children of a pane, and it is surprising that there is no clean and simple way to list the children of a pane. > > Of course one could do > > (let ((children nil)) (capi:map-pane-children pane (lambda (child) (push child children))) ... ) > > ... but for some reason that feels sort of backwards. If you want to traverse the children a mapping function is a mechanism built to do exactly that. It will also do things like give you a count of them without consing or traversing a list. And if you really want a list for some reason it will given you that. _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html