Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Re: cocoa isContextualClick (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: How does MacFSRef work?
Next thread: Subject: Re: Subject: Re: several addesses in mailto and Lion


Re: Stumper question - Leopard Crashes   -   Garth Hjelte
  Re: cocoa isContextualClick   -   Carlo Rubini
   Re: cocoa isContextualClick   -   Ing. Antonio Rinaldi
    Re: cocoa isContextualClick   -   Carlo Rubini
    cocoa isContextualClick   -   Carlo Rubini

Re: cocoa isContextualClick
Date: 02.08.13 14:10 (Fri, 2 Aug 2013 19:10:30 +0600)
From: Carlo Rubini
Hello,

sorry again, I have to reconfirm and expand what I said in my first mail:

The following snippet in an action event of a button, canvas etc always return "No".

if IsContextualClick then
MsgBox "Yes"//doesnt work in Cocoa, but works in Carbon
else
MsgBox "No"
end if

In order to get "Yes" one has to click holding down the control-key, and call it explicitly:

if Keyboard.ControlKey then
MsgBox "Yes"//it works all right
else
MsgBox "No"
end if

The MsgBox returns "No" also using the contextualMenu handler.

Is this the expected behavior in cocoa?

10.7.4 and Xojo v.2

Thanks,

Carlo

Carlo

_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: cocoa isContextualClick
Date: 02.08.13 14:41 (Fri, 02 Aug 2013 15:41:06 +0200)
From: Ing. Antonio Rinaldi
If you put your code in the mousedown event it will work as expected



Il giorno 02/08/13 15:10, "Carlo Rubini" <<email address removed>> ha scritto:

>Hello,
>
>sorry again, I have to reconfirm and expand what I said in my first mail:
>
>The following snippet in an action event of a button, canvas etc always
>return "No".
>
>if IsContextualClick then
> MsgBox "Yes"//doesnt work in Cocoa, but works in Carbon
> else
> MsgBox "No"
> end if
>
>In order to get "Yes" one has to click holding down the control-key, and
>call it explicitly:
>
>if Keyboard.ControlKey then
> MsgBox "Yes"//it works all right
> else
> MsgBox "No"
> end if
>
>The MsgBox returns "No" also using the contextualMenu handler.
>
>Is this the expected behavior in cocoa?
>
>10.7.4 and Xojo v.2
>
>Thanks,
>
>Carlo
>
>Carlo
>
>_______________________________________________
>Unsubscribe by sending a message to:
><<email address removed>>
>Search the archives:
><http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: cocoa isContextualClick
Date: 02.08.13 13:52 (Fri, 2 Aug 2013 18:52:45 +0600)
From: Carlo Rubini
Hello,

please forget my previous post.

It was my mistake: I was right-clicking instead of two-finger-clicking on the keypad.

Sorry for the noise.

Carlo

_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

cocoa isContextualClick
Date: 02.08.13 12:58 (Fri, 2 Aug 2013 17:58:36 +0600)
From: Carlo Rubini
Hello,

The following snippet in an action event of a button, canvas etc always return "No".

if IsContextualClick then
MsgBox "Yes"
else
MsgBox "No"
end if

In order to get "Yes" one has to hold down the control-key.

"No" output also using the contextualMenu handler.

Is is the expected behavior in cocoa?

10.7.4 and Xojo v.2

Thanks,

Carlo

_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>