[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TApplication.OnEndSession

Event handler signalled when a session is ended in the application.

Declaration

Source position: forms.pp line 1755

public property TApplication.OnEndSession : TNotifyEvent
  read FOnEndSession
  write FOnEndSession;

Description

OnEndSession is a TNotifyEvent property with the event handler signalled when a session is ended in the application. It is called from the IntfEndSession method, and occurs when the WM_ENDSESSION message is handled in the widget class. It is signalled before other application handlers using the ahtEndSession type.

Remark: OnEndSession may not work reliably on all platforms supported supported for Lazarus. Some environments / window managers do not post a WM_ENDSESSION message when the process is killed.

See also

TApplication.IntfEndSession

  

Called by the interface when the session ends.

TApplicationHandlerType

  

Types of Application notification handlers.


Version 3.2 Generated 2024-02-25 Home