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

of_registercallback

Send comments on this topic.

 

Description:

Used to register a call back to an event on a user object or window. The PowerToast control fires three events, toast open, toast clicked, and toast closed.

Syntax:

of_registercallback (integer ai_callback, window aw_window, string as_event)
of_registercallback (integer ai_callback, userobject auo_object, string as_event)

Argument

Description

ai_callback

The callback message that you're registering an event for. Use one of the following constants: OPEN_CALLBACK, CLICK_CALLBACK, CLOSE_CALLBACK

aw_window

The window that contains the event you want triggered.

auo_object

The userobject that contains the event you want triggered.

as_event

The name of the event that will be triggered on either the window or user object specified

Return Value:

Always returns 1.

Usage:


Copyright © 2021 Werysoft Inc.