Working With UpDown Controls in Desktop Windows Applications

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

TestComplete offers a set of functions to work with standard Win32 controls from your tests, including the UpDown control. This control consists of a pair of arrow buttons and is used with an associated EditBox control. An UpDown control and its associated control look like a single control. You can change (increment or decrement) the value, such as the number displayed in the associated control, by clicking the arrow buttons of the UpDown control.

To work with Win32 UpDown controls, TestComplete uses the Win32UpDown object. This object is automatically associated with UpDown controls whose class names are listed in the project’s Object Mapping options. If your tested application uses an UpDown control that is inherited from a standard UpDown control, you can associate it with the Win32UpDown object by adding its class name to the Object Mapping list. For more information, see Default Project Properties - Object Mapping Options.

Using properties and methods of the Win32UpDown object, you can work with the UpDown control. For instance, you can use the properties to set and get the current value displayed in the associated control. The topics of this section contain detailed information on how to work with UpDown controls in TestComplete and contain script samples that illustrate the explanation.

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 UpDown Value in Desktop Windows Applications

Describes how to get the value that is currently displayed in the UpDown control’s associated control.

Setting the UpDown Value in Desktop Windows Applications

Describes how to set the value that is currently displayed in the UpDown control’s associated control.

Getting the Minimum and Maximum Allowed Values in UpDown Controls in Desktop Windows Applications

Describes how to obtain the maximum and minimum values the UpDown control’s associated control can display.

UpDown Acceleration Information in Desktop Windows Applications

Explains how to get information about acceleration parameters and the number of acceleration information items.

Related Topics of Interest

Simulating User Actions

Explains the approaches used to simulate user actions over applications’ controls.

See Also

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

Highlight search results