Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A push button is a small, rectangular object used to perform an action. For example, the OK and CANCEL buttons on a dialog box are push buttons.
The window class name for a push button is "BUTTON".
IAccessible Methods
A push button supports the following IAccessible methods:
| Method | Comments |
|---|---|
| accDoDefaultAction | The accDoDefaultAction method clicks the push button. |
| accHitTest | |
| accLocation | |
| accNavigate | |
| accSelect |
IAccessible Properties
A push button supports the following IAccessible properties:
| Property | Comments |
|---|---|
| get_accChild | |
| get_accChildCount | The ChildCount property is zero or more. |
| get_accDefaultAction | The DefaultAction property is "Press". |
| get_accDescription | |
| get_accKeyboardShortcut | The KeyboardShortcut property is the button's access key, which is an underlined character in the text of the button's window text. For example, "Alt+o" is the KeyboardShortcut property for an OK button. |
| get_accFocus | |
| get_accHelp | |
| get_accHelpTopic | |
| get_accName | The Name property is obtained from the control's window text (or caption), which is displayed in the push button. For example, "OK" is the Name property for an OK button. |
| 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_PUSHBUTTON. |
| get_accState | The State property is a combination of one or more of the following values: STATE_SYSTEM_INVISIBLE | STATE_SYSTEM_UNAVAILABLE | STATE_SYSTEM_FOCUSED | STATE_SYSTEM_FOCUSABLE | STATE_SYSTEM_PRESSED | STATE_SYSTEM_DEFAULT |