accessibility-insights-windows
accessibility-insights-windows copied to clipboard
Passing AI4Win test for win32 list controls in report mode with only partially visible columns
How can I pass an AI4Win test for a list control in report mode with partially visible columns
My application uses a win32 list control from comctl32 in report mode as a child of a dialog window. It has 10 columns. By default, it happens to come up with 4 columns fully visible and from the fifth column, only a few pixels are shown for each list items fifth subitem. Now for every list control item, an AI4Win test complains about the subitems in the fifth column (which is only partially, i.e. only a few pixels, visible).
The error text goes like this: "The BoundingRectangle property must represent an area of at least 25 pixels."
The suggested fix is this: "Modify the BoundingRectangle property so that its width and height define an area of at least 25 pixels."
However, this dialog passes the AI4Win test, if I scroll the list control horizontally just a bit, or if I maximize the dialog whereby the list control is enlarged as well so all list control content is fully visible. I am a bit surprised that passing or failing a test with AI4Win depends on the scroll position of the list control. This is also not something I am having under control because we are persisting column widths and dialog sizes to the registry to show the dialog and its list control with the exact same column widths and size that it had the last time it was shown.
What can I do to pass the AI4Win test with this list control? Is there anything I can/should do?
Any help appreciated,
-- Stefan