Working With Status Bar Controls in Desktop Windows Applications

Applies to TestComplete 15.69, last modified on November 13, 2024

A status bar is a Windows control that represents detailed information about the application’s state. A status bar can be divided into several parts each containing a certain type of information.

You can use the Win32StatusBar object, which provides a set of specific properties and methods, to operate with status bar controls. You can use this object to obtain various information about the tested status bar control and perform actions over it. Actually, TestComplete associates the Win32StatusBar object with all status bar controls whose class names are listed in the Default Project Properties - Object Mapping Options project’s options. If your tested application uses a custom status bar control, you can add its class name to the Windows | Status Bar group of the project’s Object Mapping options.

The methods and properties of the Win32StatusBar object let you perform various operations over tested status bar controls. In addition, if the tested application is an Open Application, the internal methods and properties of the status bar control can also be accessed from tests. To learn which methods and properties of the status bar control are available to your tests, explore the tested control in the Object Browser.

The topics of this section describe common operations that can be performed over status bar controls.

Note: Though the following topics deal with scripts, you can use the same approaches while testing an application from your keyword tests. For more information, see Keyword Tests Basic Operations.

In This Section

Getting the Number of Status Bar Panes in Desktop Windows Applications

Explains how to determine the total number of status bar panes.

Getting Status Bar Panes' Text in Desktop Windows Applications

Describes how you can obtain status bar information.

Getting Status Bar Panes' Images in Desktop Windows Applications

Explains how you can work with images associated with status bar panes.

Clicking within a Status Bar Pane in Desktop Windows Applications

Explains how to perform a click on a specified point within a pane.

Determining the Bounds of a Status Bar Pane in Desktop Windows Applications

Describes how to obtain information about a pane’s dimensions.

Related Topics of Interest

Simulating User Actions

Explains the approaches used for simulating user actions over applications’ controls.

See Also

Win32 StatusBar Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results