Hi,
The tree view is a custom control, using the .Net framework and more
specifically WinForms. It kind of supports MSAA, so can be traversed.
A hook sounds like the best bet, but it would be good to find out more about
how you'd do it.
Thanks,
Sean.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Udo Egner-Walter
Sent: 08 November 2020 08:36
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Implementing first-letter navigation
Hi Sean,
there are some ways to do this and all of them have some advantages and
disadvantages. Here are some thoughts about this:
First of all the question is this a SysTreeView32 or another control? Does the
treeview support UIA?
In case of first-letter navigation there are some ways:
1. Using one of the JAWS keyboard events or keyboard event helpers, for example
KeyPressedEvent (). So you can react on the pressing of a specific key. One
disadvantage is here that you can't stop sending the key to the app. If you app
uses a key being pressed the app will execute the command assigned to the key.
For single keystrokes this rather unusual but you should keep this in mind.
2. You can install a keyboard hook. If you do this you can trap all keys and
decide in your script which one should pass and which one not. One disadvantage
here is you might not be able to stop the keyboard hook and the keys and
scripts being trapped and you can't work no longer till you release the
keyboard hook.
3. You can implement some kind of virtual keys. If you do this your scripts
control the keys till you are pressing a key to end this virtual mode. I know
two ways of doing this:
a) Using the layered keys in combination with a * at the end of the key. So the
keys are still active till you press a key without * in the layered keys
section.
b) Load another key section from an ini-file where you can assign single keys
to you scripts.
This is only an overview and the possibilities I know. if you want more details
please let me know and I try to explain this in details and with examples.
But implementing the first-letter navigation makes only sense if you can focus
your tree nodes by script. Therefore my questions at the beginning of the mail.
Hope this helps
Udo
Am 07.11.2020 um 17:01 schrieb Sean Farrow <sean.farrow@xxxxxxxxxxxxxxxx>:
Hi all,
I've got a tree view that does not natively implement first-letter
navigation, what is the best way of doing this effectively.
Any help appreciated.
Thanks,
Sean.
__________
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts