The create function can be used to create a an Emulator Window:
(create Dispatch "Carapace.EmulatorWindow")
When created using COM, the application is initially invisible so that it's
can be tailored before being displayed.
The Carapace.EmulatorWindow has the following properties:
| property name | property type | description |
|---|---|---|
emulator |
Dispatch | the contained emulator ActiveX control |
HWND |
Integer | the window handle for the main window -- this allows other applications to control the position of the window etc. |
menubar |
Symbol | boolean (true or false) which controls
the visibility of the application's menu bar
|
style |
Integer | the window style which defines the emulator's appearance |
title |
String | the title on the titlebar of the application |
titlebar |
Symbol | boolean (true or false) which controls
the visibility of the application's title bar
|
visible |
Symbol | boolean (true or false) which controls
the visibility of the application
|
The Carapace.EmulatorWindow has the following methods:
| method name | description |
|---|---|
addStyle |
add the supplied style bit to the overall application style |
removeStyle |
remove the supplied style bit from the overall application style |
moveTo |
move the application to the supplied point on screen |
resizeTo |
make the application window have the supplied dimensions |
connect |
connect the emulator to the supplied address |
write |
write the supplied data down the communications link -- as if the emulator user had typed these characters |
disconnect |
disconnect the emulator from the remote host |
addStyleAdd the supplied style bit to the overall application style. The most common values are as follows:
| maximise box | 16 |
| minimise box | 17 |
| thick frame | 18 |
| system menu | 19 |
| dialog frame | 22 |
| border | 23 |
| disabled | 27 |
Arguments:
| bit | Integer |
Return type: the empty List ()
removeStyleRemove the supplied style bit from the overall application style. See addStyle for the most common values.
Arguments:
| bit | Integer |
Return type: the empty List ()
moveToMove the application to the supplied point on screen.
Arguments:
| x | Integer |
| y | Integer |
Return type: the empty List ()
resizeToMake the application window have the supplied dimensions.
Arguments:
| width | Integer |
| height | Integer |
Return type: the empty List ()
connectConnect the emulator to the supplied address. The address is passed through to the contained emulator ActiveX control.
Arguments:
| address | String |
Return type: the empty List ()
writeWrite the supplied data down the communications link -- as if the emulator user had typed these characters.
Arguments:
| data | String |
Return type: the empty List ()
disconnectDisconnect the emulator from the remote host.
Arguments: none
Return type: the empty List ()
| Contents | Index | Current topic: objects | Related links: built-in objects |