GraffitiPreloader

View Categories

Enumerations #

Name Values
SpinnerStyles Bounce
Chase
Circle
CircleFade
Flow
Fold
Grid
Plane
Pulse
Swing
Wander
Wave

Constants #

Name Type Value

This class exposes no constants.

Events #

Definition Parameters Description

This class exposes no events.

Methods #

Definition Parameters Return Type Description
Hide None None Hides the global spinner.
Show None None Shows the global spinner.

Properties #

Name Type Default Value Description
AutoShow Boolean False When set to True, the Spinner will be automatically shown on page load.
BackgroundColor Color &c000000 Background color to display in the element that covers the page.
ForegroundColor Color &c3498db Color of the spinner element.
Height Integer 40 Height in pixels of the spinner element.
StatusText String “Loading . . .” Text displayed below the spinner element.
Style SpinnerStyles Bounce The type of spinner element to show.
Width Integer 40 Width in pixels of the spinner element.

Examples #

Setting Properties #

As all properties are shared, all sessions created will see the same Preloader screen. Properties should be set in the App.Opening event like so:

GraffitiPreloader.AutoShow = True
GraffitiPreloader.Style = GraffitiPreloader.SpinnerStyles.Swing
GraffitiPreloader.Width = 100
GraffitiPreloader.Height = 100
GraffitiPreloader.StatusText = "Spraying . . ."

Notes #

All methods and properties of GraffitiPreloader are shared. It does not need to be placed on a WebPage, WebContainer, or instantiated in any other way.