FMX.Presentation.Messages.TMessageSender.SendMessageWithResult

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SendMessageWithResult<T>(const AMessageID: TMessageID; var AValue: T);

C++

template<typename T> void __fastcall SendMessageWithResult(const System::Word AMessageID, T &AValue);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Presentation.Messages.pas
FMX.Presentation.Messages.hpp
FMX.Presentation.Messages TMessageSender

Description

Sends a message to an object getting a result.

The SendMessageWithResult method first checks that TMessageSender has a receiver and that TMessageSender can send messages.

Then SendMessageWithResult dispatches the message provided with the AMessageID and AValue parameters to the Receiver object.

The SendMessageWithResult method then updates the value of AValue.

See Also