FMX.Presentation.Messages.TMessageSender.SendMessage
Delphi
procedure SendMessage(const AMessageID: TMessageID); overload;
procedure SendMessage<T>(const AMessageID: TMessageID; const AValue: T); overload;
C++
void __fastcall SendMessage(const System::Word AMessageID)/* overload */;
template<typename T> void __fastcall SendMessage(const System::Word AMessageID, const T AValue)/* overload */;
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.
The SendMessage method first checks that TMessageSender has a receiver and that the TMessageSender can send messages; then:
- The first SendMessage overloaded method dispatches the message provided with the 
AMessageIDparameter to the Receiver object. 
- The second SendMessage overloaded method dispatches the message provided with the 
AMessageIDandAValueparameters to the Receiver object. 
See Also
- FMX.Presentation.Messages.TMessageSender.Receiver
 - FMX.Presentation.Messages.TMessageSender.HasReceiver
 - FMX.Presentation.Messages.TMessageSender.SendMessageWithResult
 - FMX.Presentation.Messages.TMessageSender.CanNotify
 - FMX.Presentation.Messages.TDispatchMessageWithValue
 - FMX.Presentation.Messages.TMessageID
 - System.TObject.Dispatch