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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 1: Строка 1:
 
* [[ FGX.Types.TfgPersistent | Вверх к родителю: TfgPersistent ]]
 
* [[ FGX.Types.TfgPersistent | Вверх к родителю: TfgPersistent ]]
 +
* [[ FGX.Messaging | К модулю: FGX.Messaging ]]
  
 
Delphi
 
Delphi
Строка 5: Строка 6:
 
<syntaxhighlight lang="Delphi">TfgMessageSender = class (TfgPersistent)</syntaxhighlight>
 
<syntaxhighlight lang="Delphi">TfgMessageSender = class (TfgPersistent)</syntaxhighlight>
  
Известные прямые наследники:
+
<p class="class-inheritance"><span class="type-border">[[System.Classes.TPersistent|TPersistent]]</span> -> <span class="type-border">[[FGX.Types.TfgPersistent|TfgPersistent]]</span> -> <span class="type-border">[[FGX.Messaging.TfgMessageSender|TfgMessageSender]]</span></p>
 +
 
 +
Прямые наследники:
 
[[FGX.NativeControl.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]
 
[[FGX.NativeControl.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]
 
== Описание ==
 
 
Class to allow sending message notifications to a TObject '' Receiver '' .
 
 
== Методы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">HasReceiver(): [[Boolean]]</code>
 
Returns whether '' TMessageSender '' has a Receiver or not.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SendMessage(const AMessageID: [[Word]])</code>
 
Sends a message to an object.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SendMessage(const AMessageID: [[Word]]; const AValue: [[T]])</code>
 
Sends a message with value to an object.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SendMessageWithResult(const AMessageID: [[Word]]; var AValue: [[T]])</code>
 
Sends a message with value to an object and allows to get result from '' Receiver '' .
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DisableNotify()</code>
 
Disables '' TMessageSender '' from sending messages.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">EnableNotify()</code>
 
Enables '' TMessageSender '' to send messages. Use CanNotify to check whether TMessageSender can send messages.
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">CanNotify(): [[Boolean]]</code>
 
Returns whether '' TMessageSender '' can send messages.
 
|}
 
 
== Свойства ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Receiver: [[TObject]]</code>
 
Returns the object that receives the message.
 
|}
 

Версия 02:46, 13 июня 2019