WiX UI elements in the wrong order for Screen Readers

When I create a user dialog in WiX, I put the elements in the order "Text" "Edit" "Text" "Edit", etc. For instance:

<Control Id="NameText" Type="Text" X="25" Y="50" Width="100" Height="10" Text="Enter Name:"/>
<Control Id="NameEdit" Type="Edit" X="25" Y="60" Width="100" Height="15" Text="jo_bob55"/>
<Control Id="AgeText" Type="Text" X="25" Y="80" Width="100" Height="10" Text="Enter Age:"/>
<Control Id="AgeEdit" Type="Edit" X="25" Y="90" Width="100" Height="15" Text="0"/>
<Control Id="ColorText" Type="Text" X="25" Y="110" Width="100" Height="10" Text="Enter your favorite color:"/>
<Control Id="ColorEdit" Type="Edit" X="25" Y="120" Width="100" Height="15" Text="red"/>

However, when I run the installer and listen to it in the Windows storyteller (or look at it using a UI spy), the elements will be fine

  • Nameedit
  • Ageedit
  • Coloredit
  • NameText
  • Agetext
  • Colortext

The second problem is that if there is a banner image (let’s name it BitmapBanner, WiXUI_Bmp_Banner text box), then all my edit fields will be listed as “LabledBy” in UI Spy, and the narrator will read “WixUI Bmp Banner Edit, WixUI Bmp Banner Edit "several times.

MSI UI Spy, , , , ( Steam UI Spy - ).

, : , WiX 3.0?

+3

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


All Articles