Lisp HUG Maillist Archive

Accessing functions in "Windows" menu [MDI interfaces]

Hi!

If I use CAPI:WINDOWS-MENU with an instance CAPI:DOCUMENT-FRAME the
menu contains a couple of functions like "Cascade" or "Tile
Horizontally."  Is there a way to call these functions programatically
without going through the menu?

Thanks,
Edi.


Re: Accessing functions in "Windows" menu [MDI interfaces]

Unable to parse email body. Email id is 3918

Re: Accessing functions in "Windows" menu [MDI interfaces]

On Fri, 27 May 2005 14:51:17 +0100 (BST), davef@lispworks.com wrote:

> It's not supported, but you could inspect the instance to discover
> that the callback function is effectively
> CAPI::WINDOWS-MENU-CALLBACK.
>
> Then you could trace that function to see the arguments passed
> during interactive use of the various items in the Windows menu.

Yes, that would have been the next thing I had tried but I thought I'd
rather send a question to lisp-hug before I go to this meeting and see
if I have a reply once I'm back home.  And - presto... :)

> And then you'd end up calling it something like this:
>
> (capi:execute-with-interface instance 'capi::windows-menu-callback 
> 			     instance :tile-horizontally)
>
> Do make sure you run the callback in the correct process.

Thanks Dave, that works fine.


Updated at: 2020-12-10 08:52 UTC