Skip to main content

TdxAlertWindowHitTest.HitButton Property

Returns the ViewInfo information associated with the inspected point if it corresponds to an alert window‘s custom button.

Declaration

property HitButton: TdxAlertWindowButtonViewInfo read;

Property Value

Type
TdxAlertWindowButtonViewInfo

Remarks

This property returns a TdxAlertWindowButtonViewInfo class instance if the HitAtButton property returns True for the inspected point; otherwise, nil.

The table below lists the main TdxAlertWindowButtonViewInfo properties that are useful for custom painting.

Property Description
Bounds The bounding rectangle of an alert window’s custom button.
Painter The painter class that is used to paint the button.
ButtonItem The custom button’s settings.
Enabled and State The custom button’s states.
IsImageAssigned Indicates if the custom button is associated with an image.
GlyphSize The size of the associated image.

Note

Since methods of ViewInfo classes support the internal infrastructure and are not intended for use in your code, we recommend that you use only ViewInfo class properties.

See Also