Re: Calling specific method

"Tim Bradshaw (as tfb at cley dot com)" <[email protected]> Fri, 17 Apr 2026 18:12:37 +0100
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
On 17 Apr 2026, at 17:23, Erik Ronström (as erik dot ronstrom at doremir dot com) <[email protected]> wrote:
> 
> Specifically, what I want to do is override the behavior of capi:map-pane-descendant-children for my custom widget, so that it doesn't descend into the child panes of my widget (but rather treats it as a leaf in the tree).

I don't know CAPI very well, but I would not be at all surprised if it uses that function internally so overriding it to say your pane doesn't have children when it does is likely not going to end well.

If you (rather than the system) are calling MPDC then it's likely better to write your own, in terms of a GF called, say, walk-pane-p which will normally return t but will have a method returning nil for your pane.  You can use map-pane-children to do each level.

--tim

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