开发者

(C#, WinForms) How to assign an accessibility attribute to an image 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜