Header controls are usually divided into several parts each having a caption. The captions are displayed above the appropriate columns. Header label parts separate columns, allow you to set their width and sort the content.
To obtain data and perform various actions over the tested header control, you can use a set of specific properties and methods of the
Win32Header object. TestComplete associates this object with standard Windows header controls whose class names are listed in the Default Project Properties - Object Mapping Options options of the current project. If you add a custom header’s class name to the Default Project Properties - Object Mapping Options list, it will be associated with
Win32Header as well, so you can use specific properties and methods of this object to work with custom header controls. In addition, if the tested application is an Open one, you can access the internal methods and properties of the header control and use them in your tests. You can explore the tested header control in the Object Browser to learn which properties and methods are available for your tests.
The topics of this section describe common operations that can be performed over header 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 Header Items in Desktop Windows Applications
Getting Header Items' Images in Desktop Windows Applications
Determining Header Items' Format Settings in Desktop Windows Applications
Sorting Content in Desktop Windows Applications
Determining the Number of Header Items in Desktop Windows Applications
Determining Header Items' Bounds in Desktop Windows Applications
Changing Header Items' Width in Desktop Windows Applications
Working With Owner-Drawn Headers in Desktop Windows Applications
Related Topics of Interest
Win32 Header Support
Default Project Properties - Object Mapping Options