StatusBar Control Type

This topic provides information about Microsoft UI Automation support for the StatusBar control type.

A status bar control displays information about an object being viewed in a window of an application, the object's component, or contextual information that relates to that object's operation within your application.

The following sections define the required UI Automation tree structure, properties, control patterns, and events for the StatusBar control type. The UI Automation requirements apply to all status bar controls where the UI framework/platform integrates UI Automation support for control types and control patterns.

This topic contains the following sections.

Typical Tree Structure

The following table depicts a typical control and content view of the UI Automation tree that pertains to status bar controls and describes what can be contained in each view. For more information about the UI Automation tree, see UI Automation Tree Overview.

Control ViewContent View
  • StatusBar
    • Edit (0 or more)
    • ProgressBar (0 or many)
    • Image (0 or many)
    • Button (0 or many)
  • StatusBar
    • Edit (0 or more)
    • ProgressBar (0 or many)
    • Image (0 or many)
    • Button (0 or many)

 

Relevant Properties

The following table lists the UI Automation properties whose value or definition is especially relevant to the status bar controls. For more information about UI Automation properties, see Retrieving Properties from UI Automation Elements.

UI Automation PropertyValueNotes
UIA_AutomationIdPropertyIdSee notes.The value of this property must be unique among all peer elements in the raw view of the UI Automation tree.
UIA_BoundingRectanglePropertyIdSee notes.The bounding rectangle of a status bar must encompass all of the controls contained within it.
UIA_ClickablePointPropertyIdSee notes.Supported if there is a bounding rectangle. If there are areas within the bounding rectangle that are not clickable, and the element performs specialized hit testing, override this and provide a clickable point.
UIA_ControlTypePropertyIdStatusBar
UIA_IsContentElementPropertyIdTRUEThe status bar control is always included in the content view of the UI Automation tree.
UIA_IsControlElementPropertyIdTRUEThe status bar control is always included in the control view of the UI Automation tree.
UIA_IsKeyboardFocusablePropertyIdDependsIf the control can receive keyboard focus, it must support this property.
UIA_IsOffscreenPropertyIdDependsIf a status bar control is not currently visible, it will return TRUE for this property.
UIA_LabeledByPropertyIdNULLThe status bar control typically does not have a label.
UIA_LocalizedControlTypePropertyIdSee notes.Localized string corresponding to the StatusBar control type. The default value is "status bar" for en-US or English (United States).
UIA_NamePropertyIdSee notes.The status bar control does not need a name unless more than one is used within an application. In this case, distinguish each bar with names such as "Internet Status" or "Application Status".
UIA_OrientationPropertyIdDependsA value indicating the control's orientation: horizontal or vertical.

 

Required Control Patterns

The following table lists the UI Automation control patterns required to be supported for status bar controls. For more information on control patterns, see UI Automation Control Patterns Overview.

Control PatternSupportNotes
IGridProvider OptionalStatus bar controls should support the Grid control pattern so that individual pieces can be monitored and easily referenced for information.

 

Required Events

The following table lists the UI Automation events that status bar controls are required to support. For more information on events, see UI Automation Events Overview.

UI Automation EventNotes
UIA_AutomationFocusChangedEventId
UIA_BoundingRectanglePropertyId property-changed event.
UIA_IsEnabledPropertyId property-changed event.If the control supports the IsEnabled property, it must support this event.
UIA_IsOffscreenPropertyId property-changed event.If the control supports the IsOffscreen property, it must support this event.
UIA_StructureChangedEventId

 

Remarks

We recommend that edit controls be used as child grid elements in a status bar. Using edit controls makes it easier to associate the purpose of the status field with its value by using the element name and value property. Because text controls should not support the Value control pattern, they should not be used as child grid elements.

Related topics

Conceptual
UI Automation Control Types Overview
UI Automation Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft