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

I am trying to find a way to get a screen reader (like JAWS) to read aloud the text assigned to images in ImageList.

Other controls (such as PushButton) have the "AccessibleName" property, which contains the text that is read by JAWS.

ImageList consists of four icons that represent priorities, and no text is displayed next to them.

Can this be done? Can you come up with any other creative solution?

Thanks, Yaniv.

+4
source share
2 answers

An ImageList is not really a visible control - it's a resource. IIRC, you will need to associate accessibility issues with a control using ImageList .

+1
source

Does the AccessibleName or AccessibleDescription property of a TreeNode object not exist? Then, when you create a dynamic node and associate an image of a specific image with it, you can also have code that “calculates” the available text for the image and sets one of these properties.

0
source

Source: https://habr.com/ru/post/1304685/


All Articles