mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-10-06 07:00:16 +08:00
Gallery items have just a bitmap, an ID and the application's client data, so there is nothing a screen reader can announce for them and they are read as "list item 3 of 39", which is useless. Add Append(bitmap, id, label) and Set/GetItemLabel() and use the label as the accessible name of the item. The label is not drawn, as the items of a gallery are bitmaps by design, it only exists to be announced. It could also be used for tooltips later, which the items don't have either. The ribbon sample already knows the names of the colours it puts in its galleries, so it passes them as the labels now, which also makes them a useful test case. Closes #27100.