Show: Delphi C++
Display Preferences

FMX.StdCtrls.TCustomButton.StaysPressed

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property StaysPressed: Boolean read FStaysPressed write SetStaysPressed stored IsPressedStored default False;

C++

__property bool StaysPressed = {read=FStaysPressed, write=SetStaysPressed, stored=IsPressedStored, default=0};

Properties

Type Visibility Source Unit Parent
property public
FMX.StdCtrls.pas
FMX.StdCtrls.hpp
FMX.StdCtrls TCustomButton

Description

Specifies whether this button remains in a pressed state once you click it.

Set the StaysPressed property to True to force this button to remain in a pressed state once you click it. The button comes back to its initial depressed state once you click it again.

If StaysPressed is set to False, then this button behaves like a standard push button that comes back to its initial state once you release the mouse button over its surface.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance