![]() |
![]() |
![]() |
X-Setup Pro SDKPlugins Event ReferenceEvents are procedures that are called to indicate that something has happened and the plugin can react on this events. Events are always fired ones after another in the order listed below, but Plugin_Apply might be fired several times. Plugin_InitializeFired when the plugin is about to be loaded. You can use this event to read the settings of your plugin and set the the correct values in the user interface (UI) using the SetUIElement function and the SetUIElementEx function. Plugin_Apply(ElementIndex,ElementSubIndex)Fired when the plugin should perform its changes to the system. It is generated if the user clicks the "Apply Changes" button or when a button inside the plugin UI is clicked (type is listbox or buttons). This is the only event where the plugin is allowed to perform changes to the system (see the Which values the parameter ElementIndex and ElementSubIndex contain, depends on the plugin type:
Note: You can change the contents of the user interface in this event. If you call SetUIElement(x) again, X-Setup Pro will detect this and display the new values, overwritting the values the user has inserted. Plugin_TerminateFired when the plugin is about to be removed from memory (unloaded). The plugin does not need to clean up anything or re-set any UI elements, this is all done automatically by X-Setup Pro. Anyway, the developer might find this event useful for something that should be done before the plugin is finally terminated. |
|