CAPI pane children (was Calling specific method)

"Erik Ronström (as erik dot ronstrom at doremir dot com)" <[email protected]> Sat, 18 Apr 2026 18:29:13 +0200
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
I'm still a bit puzzled by the way CAPI handles the "pane tree": is 
map-pane-children/map-pane-descendant-children the only general way to 
list the children of a pane, or determine if a pane is a "container" - 
or does CAPI even have that concept internally? Could any pane 
theoretically be a container for other panes?

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.

Perhaps I am just stuck in a DOM-way-of-thinking, but I feel like there 
should be a general way to tell if a pane (or pane class) has the 
ability to contain other panes. Something like capi:element-container-p. 
And also a simple way to list the children of a pane, a 
capi:element-children corresponding to capi:element-parent.

Erik

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html