Sign in Join
FPDoc Onlineexperiment

TLazLoggerWidgetSetWriteEvent procedure type

In unit LazLoggerBase

Specifies an event handler used to perform widgetset-specific debug log message handling.

Declaration

pascal
TLazLoggerWidgetSetWriteEvent = procedure(Sender: TObject; S: string; 
 var Handled: Boolean; 
 Target: TLazLoggerWriteTarget; 
 Data: Pointer) of object

Arguments

Sender

Object with the logger class instance (TLazLogger) for the event.

S

Log message handled in the routine.

HandledTrue if the message was handled in the routine, False if the default output mechanism for the logger class is used.
Target

Destination where the log message is written.

Data

Optional pointer to data for the log message.

Description

TLazLoggerWidgetSetWriteEvent is the type used for the OnWidgetSetDebugLn and OnWidgetSetDbgOut unit variables. Used primarily for the custom-drawn Android widgetset.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.