GDPlugin Help -- General Info
Navigation:
This is define the basic plugin model used by TGDPluginController.
In the \Base\ directory, you will find the basic starting point for your plugins. It contains PluginHeader.pas and Plugin.dpr.
PluginHeader.pas is to be used by both the plugin AND the application. This is where all EventCodes should be defined, as well as all data structures (records) that will be passed between the two. This allows you to effortlessly insure there will be no discrepancies between the application and plugin.
Plugin.dpr is the base for all your plugins. It defines some necessary methods and variables to insure its compatability with TGDPluginController. Almost every line in Plugin.dpr has a detailed description of its purpose. Whenever sending an event to the application, BE SURE to use the SendEventToApp function, which automatically passes your SessionID.
To add EventCodes, first define new constants in PluginHeader.pas. Then, extend the EventHandler function in Plugin.dpr to handle the specific events (see the demo for examples).
All of TGDPluginController's functionality was written to be as easy and straightforward as possible. It is incredibly fast and light-weight to keep you application and plugin sizes at a minimum!