deoExitTrigger
deoExitTrigger(
g_application
[ l_args ]
)
=> t / nil
Description
When a plugin is being removed from a window, Design Editor calls the exit trigger before disabling all GUI components of the plugin and removes the plugin only if this trigger returns a non-nil value. The return value of the exit trigger is ignored if the window on which the plugin is installed is being closed. The default implementation is a no-op, and always returns t.
Arguments
|
g_application
|
Specifies an instance (stdobj) of the plugin
|
|
l_args
|
Displays a disembodied property list. l_args->action property equals ‘deactivate in addition to the properties for DE main application triggers for removing the plugin.
The trigger argument for DE plugin is similar to the Trigger argument given to DE main application triggers. Two new values are added for the args->action property, they are 'activate, and 'deactivate. These are used for installing and removing a plugin in a window, respectively.
|
Value Returned
|
t
|
Returns t to permit the removal of the plugin
|
|
nil
|
Returns nil if the removal of the plugin cannot be successfully initiated. The return value is ignored when the window in which the plugin is running is being closed.
|
Example
defmethod( deoExitTrigger((this MyPlugin) @optional args)
(my_pre_exit_process args)
t )
Return to top