CallOptions Transitions for Smart Devices

Unofficial Content

CallOptions are used to specify at runtime the transitions, behavior and position in a call to a particular panel.
With the transitions we can change the way a panel enters and the way it leaves the screen.

Transition effects between panels are pre-defined and can be any of these:

  • Default (default effect for the plataform)
  • CurlUp
  • CurlDown
  • FlipFromLeft
  • FlipFromRight
  • SlideDown
  • SlideUp
  • SlideLeft
  • SlideRight
  • PushUp
  • PushDown
  • PushLeft
  • PushFromRight
  • Fade
  • None (no effect)

All these options are listed in an enumerated domain called Effect and are asigned to the panels in the Form class as explained here.

NOTE: Curl and Flip only works on iOS.

Definition

If for some reason you don't want to use the transition defined in the class "Form" theme for the panel, you can change that behavior at runtime.

Syntax:

<ObjectName>.CallOptions.EnterEffect = Effect.<Name of the effect>  
<ObjectName>.CallOptions.ExitEffect = Effect.<Name of the effect>

Example:

Panel.CallOptions.EnterEffect = Effect.FlipFromLeft
Panel.CallOptions.ExitEffect = Effect.FlipFromRight
Panel.Call()