FGX.Messaging.TfgMessageSender: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 5: Строка 5:
 
Delphi
 
Delphi
  
<code>TfgMessageSender = class (TfgPersistent)</code>
+
<syntaxhighlight lang="Delphi">TfgMessageSender = class (TfgPersistent)</syntaxhighlight>
 
 
== Описание ==
 
 
 
Class to allow sending message notifications to a TObject '' Receiver '' .
 
 
 
== Конструкторы ==
 
 
 
{| class="wikitable sortable"
 
|}
 
 
 
== Методы ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| function || HasReceiver()
 
Returns whether '' TMessageSender '' has a Receiver or not.
 
|-
 
| procedure || SendMessage(const AMessageID: Word)
 
Sends a message to an object.
 
|-
 
| procedure || SendMessage(const AMessageID: Word, const AValue: T)
 
Sends a message with value to an object.
 
|-
 
| procedure || SendMessageWithResult(const AMessageID: Word, var AValue: T)
 
Sends a message with value to an object and allows to get result from '' Receiver '' .
 
|-
 
| procedure || DisableNotify()
 
Disables '' TMessageSender '' from sending messages.
 
|-
 
| procedure || EnableNotify()
 
Enables '' TMessageSender '' to send messages. Use CanNotify to check whether TMessageSender can send messages.
 
|-
 
| function || CanNotify()
 
Returns whether '' TMessageSender '' can send messages.
 
|}
 

Версия 03:17, 10 июня 2019