-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add accessibility support to SwitchButton on Windows (#804)
There is no reliable way for screen reader users to find out the fuzzy (needs work) status. After some research, the most likely cause is as follows: 1. SwitchButton is owner drawn and therefore sets the BS_OWNERDRAW window style 2. When BS_OWNERDRAW is set, all other window styles should be ignored according to the docs 3. The default MSAA implementation in Windows ignores other window styles. As it relies on window style to find out whether the button is either a push button or a check box, this information is lost, and MSAA treats the toggle as a plain button without checkable state. Fixed by implementing wxAccessible for the custom button. Fixes #693.
- Loading branch information
1 parent
afe1fe8
commit b20d33a
Showing
2 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters