For using the Terminal Emulator components the main tasks are:
VB: Private Sub Form_Load() TNBXDisplay1.TelnetControl = TNB3270X1 TNBXStatusBar1.TelnetControl = TNB3270X1 ... End Sub
Delphi: procedure TForm1.Load(Sender:TObject); begin tnbEmulator.TnbCom := tnb32701; tnbStatusBar.TnbCom := tnb32701; ... end;
VB: TNBXStatusBar1.EmulatorControl = TNBXAidHook1
Delphi: tnbStatusBar.TnbEmulator := tnbDisplay1;
VB: TNBXEmulator1.AidHookControl = TNBXAidHook1
Delphi: tnbEmulator.TnbAidHook = tnbAidHook1;
VB: Private Sub Button1_Click() 'In the edit box you have to type the DNS name or 'TCP/IP address of the mainframe you want to connect to. TNB3270X1.Host = Edit1.Text TNB3270X1.Connect() ... End Sub
Delphi: procedure TForm1.Button1Click(Sender:TObject); begin // In the edit box you have to type the DNS name or // TCP/IP address of the mainframe you want to connect to. tnb3270.Host := Edit1.Text; tnb3270.Connect; ... end;
Now you have a complete terminal emulator. |