deoUpdateToolbar
deoUpdateToolbar(
g_plugin
t_name
o_toolbar
l_args
)
=> g_value
Description
Customizes a toolbar that is requested by deoRequireToolbars. DE calls this method during installing and removing a plugin.
Arguments
|
g_plugin
|
Specifies an instance (stdobj) of the plugin.
|
|
t_name
|
Specifies the name of the toolbar.
|
|
o_toolbar
|
Specifies a handle to the toolbar.
|
|
l_args
|
Single argument, which is a disembodied property list. The trigger argument (l_args) for DE plugin is very similar to the Trigger Argument given to DE main application triggers. In addition to the properties for DE main application menu 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
|
g_value
|
Return value is ignored.
|
Example
(defmethod deoUpdateToolbar ((this MyPlugin) (name string) (toolbar hiToolBar) args)
(if (equal name "View")
(if (eq args->action 'activate)
(customize_toolbar toolbar args)
(revert_customization toolbar args))
(callNextMethod this name toolbar args)))
Return to top