FGX.Messaging.TfgMessageSender: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
Строка 8: | Строка 8: | ||
Class to allow sending message notifications to a TObject '' Receiver '' . | Class to allow sending message notifications to a TObject '' Receiver '' . | ||
+ | |||
+ | == Методы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <code lang="Delphi">function</code> || <code lang="Delphi">HasReceiver()</code> | ||
+ | Returns whether '' TMessageSender '' has a Receiver or not. | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">SendMessage(const AMessageID: [[Word]])</code> | ||
+ | Sends a message to an object. | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">SendMessage(const AMessageID: [[Word]]; const AValue: [[T]])</code> | ||
+ | Sends a message with value to an object. | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <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 '' . | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">DisableNotify()</code> | ||
+ | Disables '' TMessageSender '' from sending messages. | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">EnableNotify()</code> | ||
+ | Enables '' TMessageSender '' to send messages. Use CanNotify to check whether TMessageSender can send messages. | ||
+ | |- | ||
+ | | <code lang="Delphi">function</code> || <code lang="Delphi">CanNotify()</code> | ||
+ | Returns whether '' TMessageSender '' can send messages. | ||
+ | |} |
Версия 03:53, 10 июня 2019
Delphi
TfgMessageSender = class (TfgPersistent)
Описание
Class to allow sending message notifications to a TObject Receiver .
Методы
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. |