TMGProcServer

This component is the part which is called by the TMGProcClients to process something like to show a form or so.

Procedures

procedure NotifyClients(Event:String; Value:variant);
Notifies all assigned Clients about an event.
procedure NotifyEnabled;
Tells all assigned Clients that the value of the Enabled property has changed.
procedure Register;virtual;
Registers the Server.
procedure UnRegister;virtual;
Unregisters the server.

 

Properties

property Registered : boolean
Returns wether the server is registered or not.
property Comment : String
A short comment about the Server.
property Group : string
Devides all servers in diferent groups. which are stored seperatly in TMGApplicationService.
property Icon : TIcon
An Icon assigned to this Server.
property Visible : boolean
This Property is not used within the framework but i thought that is really practicable to
include a property like this to give the developer a simple method to deside wether the Server 
should appear in a list for example or not.
property Properties : TMGPropertyItems
Coresponds to the TMGProcClient.SetProperty and GetProperty methods. Within the list each defined
property has a specific name, an OnGet Event and an OnSetEvent.
property AutoRegister : boolean
Is the Server registered automatically when the Application or Server is loaded?
property ProcName : string
The Name of the Server. A coresponding TMGProcClient must have this property set to the same value.
property Enabled : boolean
Can the Server be Executed?

 

Events

property OnBeforeRegister : TMGRegisterEvent
Called before the Server is registered.
property OnAfterRegister : TNotifyEvent
Called after the Server is registered.
property OnBeforeUnRegister : TMGUnRegisterEvent
Called before the Server is unregistered.
property OnAfterUnRegister : TNotifyEvent
Called after the Server is registered.
property OnCreate : TNotifyEvent
Called when the component is created.
property OnDestroy : TNotifyEvent
Called when the component is destroyed.
property OnGetEnabled : TMGGetEnabledEvent
A second way to get the State of the Enabled Property
property OnCanClose : TMGCanCloseEvent
Called when the TMGApplicationService.Canclose procedure is called.
property OnGetUnknownProperty : TMGGetUnknownEvent
called when an unknown Property is called by a client.
property OnSetUnknownProperty : TMGSetUnknownEvent
called when an unknown Property is called by a client.
property OnExecute : TMGExecuteEvent
Called when the Server is executed by a client