FMX.Effects.TEffect.Trigger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Trigger: TTrigger read FTrigger write FTrigger;

C++

__property Fmx::Types::TTrigger Trigger = {read=FTrigger, write=FTrigger};

Properties

Type Visibility Source Unit Parent
property public
FMX.Effects.pas
FMX.Effects.hpp
FMX.Effects TEffect

Description

Property that holds the trigger condition.

Each trigger condition consists of the property name, an equals sign, and the trigger value. All the built-in triggers are Boolean, so their value must be either True or False. For example:

IsMouseOver=true;IsPressed=false

You can most easily set trigger values in the Object Inspector.

Trigger Description
IsDragOver

Triggers the effect when the control is being dragged (with the mouse button clicked and held down).

IsFocused

Triggers the effect when the focus is on the control.

IsMouseOver

Triggers the effect when the mouse passes over the control (requires HitTest set to True).

IsVisible

Triggers the effect when the control is visible on the screen.


Other built-in triggers include:

  • IsActive (TCustomForm)
  • IsChecked (TMenuItem)
  • IsOpen (TEffect)
  • IsPressed (TCustomButton)
  • IsSelected (TMenuItem, TTabItem, TListBoxItem, TTreeViewItem)


For more information about effects triggers, see "Effect Triggers" in FireMonkey Image Effects.

See Also