captionbutton.gif AllowPress property
[Previous] [Main] [Next]

Applies to
CaptionButton component.

property AllowPress: Boolean;

The AllowPress property controls whether CaptionButton could be pressed (if button pressed, Down property will be True).

If AllowPress is True, the button will have two states - pressed and unpressed (up and down state), which can be controlled by Down property. Also two additional events will occurs - OnPressed on button pressing and OnReleased on releasing.

See also
Down property and OnClick, OnPressed, OnReleased events.