Static Text (MSAA UI Element Reference)

Static text controls provide a convenient way to display text on dialog boxes and other windows. Static text controls often serve as labels for other controls.

The window class name for a static text control is "STATIC".

IAccessible Methods

Static text controls support the following IAccessible methods:

IAccessible Properties

Static text controls support the following IAccessible properties:

get_accChildCount The ChildCount property is zero.
get_accKeyboardShortcut The KeyboardShortcut property is the access key, which is the underlined character in the text that activates the control associated with the static text. The returned string contains the access key character appended to the string "Alt+".
get_accName The Name property is the same as the text in the static text control.
get_accParent The Parent property is a window ( ROLE_SYSTEM_WINDOW ) that surrounds the control and has the same Name property and window class name as the control.
get_accRole The Role property is ROLE_SYSTEM_STATICTEXT.
get_accState The State property is a combination of one or more of the following values:




  • The accSelect method returns DISP_E_MEMBERNOTFOUND when it is called with SELFLAG_TAKEFOCUS on a static text object.
  • Static controls with the SS_ICON style return invalid data in the Name property.

Related topics

IAccessible Interface