Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodTelnetDLX
- Methods
- Properties
- Authentication
- AutoSize
- BackColor
- BackLog
- BindIP
- BindPort
- Blocking
- BorderVisible
- Certificate
- CharEncoding
- Column
- Columns
- ColWidth
- Command
- ContextMenu
- CursorHeight
- DataOut
- DataReady
- Enabled
- ErrorText
- ExitSignal
- ExitStatus
- Font
- ForeColor
- HandleSysKeys
- Hostname
- hWnd
- KeepAlives
- Language
- LastError
- LocalCertBag
- Login
- MousePointer
- MouseWheel
- MyHostname
- MyIP
- Notification
- Password
- Picture
- Port
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RecordMode
- RemoteIdentification
- Row
- RowHeight
- Rows
- ScrollBars
- ScrollX
- ScrollY
- SecureMethod
- SelectedText
- ShowCursor
- Socket
- SpecialKeyFocus
- State
- StateText
- StripANSI
- StripColors
- TabStop
- TelnetOption
- TerminalEmulation
- TerminalType
- Text
- Timeout
- TranslateSpecial
- UseIPv6
- Version
- Events
- IwodTelnetNotify
- wodTelnetDLX
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Notification property
Fast notification interface to use instead of events.
Type
IwodTelnetNotify objectSyntax
- Basic
[Set] object.Notification [= value]
The Notification(object,value) syntax has these parts:
The Notification(object,value) syntax has these parts:
object | An expression evaluating to an object of type wodTelnetDLX |
value | IwodTelnetNotify object |
Remarks
This property is only available in COM version of the component.Notification property holds reference to IwodTelnetNotify interface that can be implemented by your application. When this property is set, and contains such a reference, wodTelnetDLX will call your method implementations instead of firing events. More information on how this works can be found here.
For example, instead of having this in your code (VB example):
Private Sub Telnet1_Connected(ByVal ErrorCode As Long, ByVal ErrorText As String)
End Sub
you will have this:
Private Sub IwodTelnetNotify_Connected(ByVal Owner As wodTelnetDLXComLib.IwodTelnetDLXCom, ByVal ErrorCode As Long, ByVal ErrorText As String)
End Sub
pretty much the same - except notification method has one more argument - Owner, which holds reference to wodTelnetDLX instance that called this method.
In VB, to implement IwodTelnetNotify interface, you need code like this:
- at the top of the code, in
Dim Telnet As wodTelnetDLXCom
Implements IwodTelnetNotify
- in Form_Load (or where you initialize new instance of wodTelnetDLX) do this:
Set Telnet = New wodTelnetDLXCom
Set Telnet.Notification = Me
Telnet.Protocol = Telnet
Telnet.Timeout = 30
Telnet.Connect
'...
You can notice that when we declared Telnet, we did not use WithEvents keyword - it is not needed anymore, because events will not be fired anymore. Notification methods we implement will be called instead!