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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 10: Строка 10:
 
Прямые наследники:
 
Прямые наследники:
 
[[FGX.NativeControl.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]
 
[[FGX.NativeControl.Factory.TfgNativeControlHandle|TfgNativeControlHandle]]
 
== Описание ==
 
 
<p>Class to allow sending message notifications to a TObject <i>Receiver</i> .</p>
 
 
== Методы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">HasReceiver(): [[Boolean]]</code>
 
<p>Returns whether <i>TMessageSender</i> has a Receiver or not.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SendMessage(const AMessageID: [[Word]])</code>
 
<p>Sends a message to an object.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SendMessage(const AMessageID: [[Word]]; const AValue: [[T]])</code>
 
<p>Sends a message with value to an object.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SendMessageWithResult(const AMessageID: [[Word]]; var AValue: [[T]])</code>
 
<p>Sends a message with value to an object and allows to get result from <i>Receiver</i> .</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DisableNotify()</code>
 
<p>Disables <i>TMessageSender</i> from sending messages.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">EnableNotify()</code>
 
 
<p>Enables <i>TMessageSender</i> to send messages. Use CanNotify to check whether TMessageSender can send messages.</p><div class="info">The model reads quantity of calls of <i>DisableNotify</i> . So all calls of <i>DisableNotify</i> and <i>EnableNotify</i> shall be pairs.</div>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">CanNotify(): [[Boolean]]</code>
 
<p>Returns whether <i>TMessageSender</i> can send messages.</p>
 
|}
 
 
== Свойства ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Receiver: [[TObject]]</code>
 
<p>Returns the object that receives the message.</p>
 
|}
 

Версия 18:11, 29 июня 2019