开发者

(C#, WinForms) How to assign an accessibility attribute to an image in ImageList

开发者 https://www.devze.com 2022-12-23 21:02 出处:网络
I\'m trying to find a way to make a screen-reader (like JAWS) to read out loud some text that is assigned to images in ImageList.

I'm trying to find a way to make a screen-reader (like JAWS) to read out loud some text that is assigned to images in ImageList.

In other controls (like PushButton) there is "AccessibleName" property, that when contains text, it's being read by JAWS.

the ImageList consists of four icons that开发者_开发技巧 represent priorities, and no text is displayed near them.

Is it possible to do it? Can you think of any other creative solution?

Thanks, Yaniv.


An ImageList isn't really a visible control - it is a resource. IIRC you would have to associate accessibility concerns with the control that is using the ImageList.


Is there not an AccessibleName or AccessibleDescription property on the TreeNode object? Then, as you are building the dynamic node, and associating a specific image to it from the imagelist, you can also have some code that 'calculates' the accessible text for the image and sets one of those properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号