Navigation: Ultimate Suite for PowerBuilder Help > PowerToast > Functions >

of_alert

Send comments on this topic.

 

Description:

Pops up a toast alert notiifcation.

Syntax:

of_toast (string as_image, string as_message, string as_color)
of_toast (string as_image, string as_message, string as_color, integer ai_animation)

Argument

Description

as_image

The image to display next to the message. Use a 48x48 pixel image for best results.

as_message

The message displayed in the toast

as_color

Pass, as a string, the color of the alert. Valid values are "BLUE", "OLIVE", "SILVER", "BLACK", "CLASSIC", "PINK", "DEEPBLUE", "PURPLE", "GREEN", "ORANGE", "RED"

ai_animation (optional)

The animation used to display the toast. Default is no animation: Use one of the following constants FADE_ANIMATION, SLIDELEFT_ANIMATION, SLIDEUP_ANIMATION

Return Value:

Returns a unique id for the toast message.

Usage:

 


Copyright © 2021 Werysoft Inc.