Midware TAppServer.OnDisplay

From Overbyte
Jump to navigation Jump to search

Main page -> Midware component reference -> TAppServer -> OnDisplay

Definition

<syntaxhighlight lang="delphi"> type TDisplayEvent = procedure (Sender : TObject; Msg : String) of object;

property OnDisplay : TDisplayEvent; </syntaxhighlight>

Description

Occurs when server need to display a message.

Sometimes, the server can display some infos about his internal working. Each time the server wants to display that info, it triggers the OnDisplay event. There is no need to have an event handler connected to this event. If you add an event handler, it is probably to display the messages on the server's user interface, or just to log it into a file. Messages to be displayed can be generate by the TAppServer component or any TServerObject used in the server.