[Windows] Menu texts incorrectly or not updated ==> accessibility issues
Original Reporter info from Mantis: ChrisF
-
Reporter name:
Original Reporter info from Mantis: ChrisF
- Reporter name:
Description:
** Windows widgeset only **
Menu item texts are always "painted" in the LCL, even there is no graphical part (through DrawText, DrawThemeText API).
The "real" text present in the windows menu is in fact never visible on the screen. However, screen reader applications (accessibility - see http://en.wikipedia.org/wiki/Screen_reader) rely entirely on the information retrieved from the windows structures. They can't read what is "painted", whatever it is: text or graphic.
And there are currently several issues concerning the "real" texts sent to the Windows menu APIs. Once again, these issues are not visible for the common users (i.e. users who don't use any screen reader).
Main issues (i.e. accessibility issues):
- mnemonic absent in text menu (like '&File') in the first level of the main menus,
- shortcut absent in text menu (like "Open Ctrl+O"),
- no text conversions. Currently, UTF8 strings are always sent directly to Ansi APIs only,
- MIIM_TYPE always used, both for the Windows95 or Windows98+ menu versions, while it's no more supported by Win98+ (replaced by MIIM_BITMAP, MIIM_FTYPE, and MIIM_STRING).
Additional information:
Attached, a diff patch which is fixing all these text issues for the current trunk version (rev 46204).
Sorry, I can't test the Windows 95 version (I've tried to respect all the former code in the current version for it).
Mantis conversion info:
- Mantis ID: 26718
- Platform: Windows
- Version: 1.2.4
- Fixed in revision: r46402 (#37d4f751)