[Nvda-dev] Associating window class with NVDA object

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

[Nvda-dev] Associating window class with NVDA object

Lubos Pintes-2
Hello,
I played with NVDA and the First Page 2006 HTML editor. At first, NVDA
cannot read the edit window but it can retrieve the internal text as
reported by NVDA+F1. NVDA says that the window class is TLxSyntaxMemo.
So one that knows Delphi or C++ builder can easily deduce that it is
some sort of edit field. It would be nice if I could associate the class
TLxSyntaxMemo with the edit NVDA object at least in current NVDA
session. Also some new section in config file would not be bad It could
not be so big problem in my opinion, but I don't know to do this because
I don't know wx :-).
Now something unrelated but very important for me.
Does somebody know this editor? I have problems with it and Jaws 7.0. I
know that it is not only Jaws specific some other people discovered
problems as well.
Any known workarounds? It is good editor but is buggy.


Reply | Threaded
Open this post in threaded view
|

Re: [Nvda-dev] Associating window class with NVDA object

James Teh-2
Lubos Pintes wrote:
> NVDA says that the window class is TLxSyntaxMemo.
> So one that knows Delphi or C++ builder can easily deduce that it is
> some sort of edit field. It would be nice if I could associate the class
> TLxSyntaxMemo with the edit NVDA object at least in current NVDA
> session.
There is certainly no guarantee that this will work, as it may not
support the standard edit control API. Nevertheless, if you are running
from source, you can test this in the current session by doing the
following:
1. Press NVDA+ctrl+z to enter the Python console.
2. Type the following:
from NVDAObjects import IAccessible
from NVDAObjects.IAccessible import edit
IAccessible._staticMap[("TLxSyntaxMemo", None)] = edit.Edit

> Also some new section in config file would not be bad
We are eventually going to redesign the class mapping code to make it
more flexible and something like this will probably be added then. Right
now, this would be a bit tricky. For now, you can add an entry to
_staticMap in NVDAObjects/IAccessible/__init__.py.

> It could
> not be so big problem in my opinion, but I don't know to do this because
> I don't know wx :-).
This has nothing to do with wx, althouhg it does obviously relate to NVDA.

Jamie

--
James Teh
Email: [hidden email]
WWW: http://www.jantrid.net/
MSN Messenger: [hidden email]
Jabber: [hidden email]
Yahoo: jcs_teh