FMX.Forms.TApplication.HandleMessage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HandleMessage: Boolean;

C++

bool __fastcall HandleMessage();

Properties

Type Visibility Source Unit Parent
function public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TApplication

Description

Interrupts the execution of a FireMonkey application while processing a message in the message queue.

HandleMessage interrupts the execution of the FireMonkey application so that a single message from the message queue is processed, before returning the control to the application. If the message queue is empty, HandleMessage generates an OnIdle event and starts the process of updating the actions in the application.

Note: If the application goes idle, HandleMessage may take a long time to return. Therefore, do not call HandleMessage when waiting for something message-based while priority actions are also being processed. Instead, call ProcessMessages when processing more than just messages.

See Also