NumGlyphs Property

Applies to TestComplete 14.20, last modified on September 11, 2019

Specifies the number of parts in the image specified by the Glyph property.

Declaration

componentObj.NumGlyphs
Read-Write Property Integer
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButton

Description

The Glyph image can be divided into several parts, each part corresponding to a specific button state (enabled, disabled, pressed and so on). Use the NumGlyphs property to determine or specify the number of parts in the Glyph image. To learn how to arrange several images within the Glyph image, see the Glyph property description.

The number of parts in Glyph cannot be determined automatically. You should manually specify the number of parts to divide the Glyph image, in the NumGlyph property.

Property Value

An integer value between 1 and 4 that means the number of parts in the Glyph bitmap. The default value is 1. The table below describes possible values:

Value Description
1 The Glyph image contains one part. It appears in all button states except when the button is disabled.
2 The Glyph image contains two parts. The first image is displayed in all button states except when it is disabled. The second image is displayed when the button is disabled.
3 The Glyph image contains three parts. The first image is displayed when the button is up (unselected) or focused, the second - when the button is disabled, the third - when the button is pressed.
4 The Glyph image contains four parts. The first image is displayed when the button is up (unselected) or focused, the second - when the button is disabled, the third - when the button is pressed, the fourth - when the button is down.

See Also

Glyph Property

Highlight search results