私はWinFormsアプリケーションを持っており、UIAutomationを通じてToolStripStatusLabel
のテキストにアクセスできないようです。 Microsoft impliesStatusStrip
(およびおそらくそれらのアイテム)のサポートは限られていますが、これは動作するはずの基本的な十分な使用例のようです。ToolStripStatusLabelを使用したUIAutomation
コントロールはUISpyでControlType.Edit
と表示され、読み取り専用のテキストボックスに見えますが、その値はテキストではなく名前と常に同じです。 UISpyで
プロパティは次のとおりです。基本的に、私はmyLabel.Text = "something"
を行くとUIAutomationを通じて何とかその値を出すことができるようにするいくつかの方法のために願っています
AutomationElement
General Accessibility
AccessKey: ""
AcceleratorKey: ""
IsKeyboardFocusable: "False"
LabeledBy: "(null)"
HelpText: ""
State
IsEnabled: "True"
HasKeyboardFocus: "False"
Identification
ClassName: ""
ControlType: "ControlType.Edit"
Culture: "(null)"
AutomationId: "StatusBar.Pane0"
LocalizedControlType: "edit"
Name: "My Label"
ProcessId: "3972 (*****)"
RuntimeId: "42 134002 0"
IsPassword: "False"
IsControlElement: "True"
IsContentElement: "True"
Visibility
BoundingRectangle: "(9, 273, 79, 17)"
ClickablePoint: "48,281"
IsOffscreen: "False"
ControlPatterns
GridItem
Row: "0"
Column: "0"
RowSpan: "1"
ColumnSpan: "1"
ContainingGrid: ""status bar" "statusStrip""
Value
Value: "My Label"
IsReadOnly: "True"
。
ああ、。私は来週これを試してみよう!なぜそれがエディットコントロールとして公開されているのでしょうか?これは私にとっては問題ありませんが、スクリーンリーダーにとっては誤解を招くようです。 – Thom