Is this a bug or am I missing something?

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

xtalkprogrammer
Mark,

This isn't true. If the traversalOn of a button it true, it can have focus.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/9/2014 07:37, Mark Wieder wrote:

> John-
>
> Buttons can't receive focus. The focus of your mainstack is on the
> only control that can receive a focus, the result field.
>
> And it doesn't matter that you have clicked in the substack first. The
> act of clicking in the menu shifts the focus to the main stack.
>
> What you are seeing in the result field is correct.
>

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Kind regards,

Drs. Mark Schonewille

Economy-x-Talk Consultancy and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Facebook: http://facebook.com/LiveCode.Beginner
KvK: 50277553
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

mwieder
Mark Schonewille <m.schonewille@...> writes:

> This isn't true. If the traversalOn of a button it true, it can have focus.

Right. I stand corrected.
But that doesn't apply to menu buttons.

--
 Mark Wieder
 [hidden email]




_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
 Mark Wieder
 ahsoftware@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

xtalkprogrammer
Mark,

Wrong again. Create a menu button, set its traversalOn to true, press
tab and use the arrow keys to navigate the menu.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/10/2014 21:01, Mark Wieder wrote:
> Mark Schonewille <m.schonewille@...> writes:
>
>> This isn't true. If the traversalOn of a button it true, it can have focus.
>
> Right. I stand corrected.
> But that doesn't apply to menu buttons.
>

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Kind regards,

Drs. Mark Schonewille

Economy-x-Talk Consultancy and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Facebook: http://facebook.com/LiveCode.Beginner
KvK: 50277553
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

mwieder
Mark Schonewille <m.schonewille@...> writes:

> Wrong again. Create a menu button, set its traversalOn to true, press
> tab and use the arrow keys to navigate the menu.

Hmm... I did that before posting. I'm unable to have the focusedObject be a
menu button on osx. I'll check again when I get the chance - possibly I did
something wrong in the test.

--
 Mark Wieder
 [hidden email]




_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
 Mark Wieder
 ahsoftware@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

J. Landman Gay
On 10/10/2014, 4:55 PM, Mark Wieder wrote:
> Mark Schonewille <m.schonewille@...> writes:
>
>> Wrong again. Create a menu button, set its traversalOn to true, press
>> tab and use the arrow keys to navigate the menu.
>
> Hmm... I did that before posting. I'm unable to have the focusedObject be a
> menu button on osx. I'll check again when I get the chance - possibly I did
> something wrong in the test.
>

Is keyboard navigation the same thing as being the focusedObject? LC
always selects the first focusable object on opencard, and on OS X it
never selects a button. On Windows it does.

--
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

Bob Sneidar-2
In reply to this post by mwieder
Not sure why it matters. You cannot tab to an OS X button even if traversal on is true, unless of course you set some system property that escapes me at the moment to make you stack look and act like an ugly OS 9 hypercard-ish monstrosity. I even tried scripting to focus on the button, but it didn’t hilite. The focusedObject turns out to be a field.

On OS X buttons cannot seem to receive the focus even if traversalOn is true, unless there is some other property involved that I do not know about.

Bob S


On Oct 10, 2014, at 14:55 , Mark Wieder <[hidden email]> wrote:

> Mark Schonewille <m.schonewille@...> writes:
>
>> Wrong again. Create a menu button, set its traversalOn to true, press
>> tab and use the arrow keys to navigate the menu.
>
> Hmm... I did that before posting. I'm unable to have the focusedObject be a
> menu button on osx. I'll check again when I get the chance - possibly I did
> something wrong in the test.
>
> --
> Mark Wieder
> [hidden email]
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

xtalkprogrammer
In reply to this post by mwieder
Mark,

It might be different on OSX. I'm using Windows today. Also, I've now
noticed that you need to click in the card and not on the title bar to
enable navigation by arrow keys --seems a small bug to me.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/10/2014 23:55, Mark Wieder wrote:
> Mark Schonewille <m.schonewille@...> writes:
>
>> Wrong again. Create a menu button, set its traversalOn to true, press
>> tab and use the arrow keys to navigate the menu.
>
> Hmm... I did that before posting. I'm unable to have the focusedObject be a
> menu button on osx. I'll check again when I get the chance - possibly I did
> something wrong in the test.
>

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Kind regards,

Drs. Mark Schonewille

Economy-x-Talk Consultancy and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Facebook: http://facebook.com/LiveCode.Beginner
KvK: 50277553
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

mwieder
Mark Schonewille <m.schonewille@...> writes:

> It might be different on OSX.

It's *very* different on osx, or at least different from linux, because on
osx the menubar takes on a life of its own and is no longer visually on the
card.

--
 Mark Wieder
 [hidden email]



_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
 Mark Wieder
 ahsoftware@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

xtalkprogrammer
That's true, Mark, but my point was only that menu buttons can have
focus. Apparently, it doesn't make a difference to OP.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 10/11/2014 01:03, Mark Wieder wrote:
> Mark Schonewille <m.schonewille@...> writes:
>
>> It might be different on OSX.
>
> It's *very* different on osx, or at least different from linux, because on
> osx the menubar takes on a life of its own and is no longer visually on the
> card.
>

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Kind regards,

Drs. Mark Schonewille

Economy-x-Talk Consultancy and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Facebook: http://facebook.com/LiveCode.Beginner
KvK: 50277553
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

J. Landman Gay
The OP wondered why the focusedObject didn't work for buttons on OS X. It's because buttons can't have focus there.

On October 10, 2014 6:13:29 PM CDT, Mark Schonewille <[hidden email]> wrote:

>That's true, Mark, but my point was only that menu buttons can have
>focus. Apparently, it doesn't make a difference to OP.
>
>--
>Best regards,
>
>Mark Schonewille
>
>Economy-x-Talk Consulting and Software Engineering
>Homepage: http://economy-x-talk.com
>Twitter: http://twitter.com/xtalkprogrammer
>KvK: 50277553
>
>Installer Maker for LiveCode:
>http://qery.us/468
>
>Buy my new book "Programming LiveCode for the Real Beginner"
>http://qery.us/3fi
>
>LiveCode on Facebook:
>https://www.facebook.com/groups/runrev/
>
>On 10/11/2014 01:03, Mark Wieder wrote:
>> Mark Schonewille <m.schonewille@...> writes:
>>
>>> It might be different on OSX.
>>
>> It's *very* different on osx, or at least different from linux,
>because on
>> osx the menubar takes on a life of its own and is no longer visually
>on the
>> card.
>>
>
>_______________________________________________
>use-livecode mailing list
>[hidden email]
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode

--
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Is this a bug or am I missing something?

mwieder
In reply to this post by xtalkprogrammer
Mark Schonewille <m.schonewille@...> writes:

>
> That's true, Mark, but my point was only that menu buttons can have
> focus. Apparently, it doesn't make a difference to OP.

No, that's *exactly* the point. If you look at the code in his sample stack,
he's tracking the focusedObject when a menu button is clicked. And the focus
doesn't follow to the menu button on osx, hence the confusion about where
the focus shifts.

--
 Mark Wieder
 [hidden email]




_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
 Mark Wieder
 ahsoftware@gmail.com
12