Lisp HUG Maillist Archive

capi - mouse to screen coords?

I want to convert the mouse x/y to "screen" coordinates but don't see a 
function in the docs that looks like it will do the job (I'm probably 
missing something obvious :-).

I think that the mouse x/y sent to a capi mouse callback is 
pane-relative.  I position the mouse over an output pane, click and want to 
pop a new, separate window up where the mouse is.  The new window needs 
best-x/best-y that are relative to the screen, not the output-pane.

I think that I might be able to calculate the value I want by grabbing the 
top-level-interface-geometry and working from there (haven't sussed this 
out fully, so hints would be appreciated).  Is this the best way to get 
what I want?

thanks in advance
pt


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

Re: capi - mouse to screen coords?

Unable to parse email body. Email id is 1227

FAQ: (re)defining symbols visible from CL package

Hi

this is probably a FAQ.

I am playing around with Norvig's code.  I stashed all of it in a 
package named "PAIP" (the original code assumes everything is put in 
the "CL-USER" package)

When I compile and load the code, I get a continuable error stating 
that I am redefinining a symbol visible from the CL package. (The 
symbol being 'SYMBOL :) ).  As it is SYMBOL is neither BOUNDP nor 
FBOUNDP.  Is there a way to override the LW behavior (meaning, by 
avoiding the generation of the continuable error)?

Thanks

--
Marco Antoniotti
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

Re: FAQ: (re)defining symbols visible from CL package

On Thursday 24 July 2003 10:28 am, Marco Antoniotti wrote:
> I am playing around with Norvig's code.  I stashed all of it in a

Not a direct answer to your question - I simply renamed the offending symbols 
(3 of them, if I recall) in Norvig's code, then it compiled and ran.

pt


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

Re: FAQ: (re)defining symbols visible from CL package

Unable to parse email body. Email id is 1230

Re: FAQ: (re)defining symbols visible from CL package

On Thursday, Jul 24, 2003, at 13:27 America/New_York, David Fox wrote:

>
>    Hi
>
>    this is probably a FAQ.
>
> Yes :)
>
>    I am playing around with Norvig's code.  I stashed all of it in a
>    package named "PAIP" (the original code assumes everything is put in
>    the "CL-USER" package)
>
>    When I compile and load the code, I get a continuable error stating
>    that I am redefinining a symbol visible from the CL package. (The
>    symbol being 'SYMBOL :) ).  As it is SYMBOL is neither BOUNDP nor
>    FBOUNDP.
>
> True, but it is defined in ANSI Common Lisp, as a system class. I hope
> the code is not trying to define a type or class of this name.

No. It is being defined as a function.  (FBOUNDP 'CL:SYMBOL) ==> NIL

>
>            Is there a way to override the LW behavior (meaning, by
>    avoiding the generation of the continuable error)?
>
> Yes - see
> http://www.lispworks.com/reference/lwm43/LWRM/html/lwref-168.htm
>
> But it would be better to shadow that name in your PAIP package.

Duh! :}


Cheers

Marco
--
Marco Antoniotti
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

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