API:FMX.Effects.TRasterEffect.Trigger
Delphi
property Trigger: TTrigger read FTrigger write FTrigger default 0;
C++
__property Trigger = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Effects.pas FMX.Effects.hpp |
FMX.Effects | TRasterEffect |
Description
Property that holds the trigger condition.
FMX.Effects.TRasterEffect.Trigger inherits from FMX.Effects.TEffect.Trigger. All content below this line refers to FMX.Effects.TEffect.Trigger.
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). |
Triggers the effect when the focus is on the control. | |
Triggers the effect when the mouse passes over the control (requires HitTest set to True). | |
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.