Community
Participate
Working Groups
Accessibility callbacks only occur when focus traversal happens. However, I have a single canvas that has several items which can be traversed, like a windows tree. I need to fire whenever such traversal happens so that the accessiblity callbacks will be refreshed. i.e., focus location, role, etc.
Try using the setFocus API on Accessible. An example is in CTabFolder. I have not had time to write up that little example for you - sorry. I will get to it sometime, but I'm afraid I have other things to do first. Please let me know if this helps. The API and the changes to CTabFolder were released a couple of drops ago.
Note that there was a bug in Accessible.setFocus which is now fixed in the M6 drop that will be available today. If setFocus(ACC.CHILDID_SELF) was sent to the client, I was sending the parent window info instead of "self". Hopefully this was a rare case and you were typically using setFocus(aChildID), but if you needed this to work also, please get the latest drop (20020521 - afternoon). On a side note, I believe you only need setFocus in order to call this PR fixed. If you find that you need setSelection as well, please make a case for why we should add it as API. The other notification messages are esoteric, because typical clients will ask for info when the mouse moves or focus changes. i.e. it would be very strange for you to be generating role & location change notification messages - it would slow your code down making sure to generate everything when you were just going to be asked again anyhow when the changed item gets focus. Please let me know if I can mark this PR fixed.
Isn't this fixed?
Fixed in 2.0.