Intermec CV30 Intermec Terminal Emulator (ITE) Programmer's Reference Manual - Page 170

ITE Screen Contents, ITC.doWebBrowser

Page 170 highlights

Appendix B - About RPC Implementation ITC.doWebBrowser This function takes a single parameter - a string representing the url address of a web page that the client wants to invoke (such as http://www.intermec.com). This function invokes the web browser by sending the WM_BROWSER_INVOKE message to ITE with the lParam set to the url address of the web page to be invoked. It will only allow you to open a single web page. If a web page is already opened then this function is ignored. Example: void InvokeWeb (void) { noArgs = "http://google.com"; c->execute("ITC.doWebBrowser", noArgs, result); } ITC.closeWebBrowser This function does not take any parameters. This function sends the WM_BROWSER_CLOSE message to the ITE application. When the ITE application sees this message it sends a WM_CLOSE to the handle of the open web page. Example: void CloseWeb (void) { noArgs = ""; c->execute("ITC.closeWebBrowser", noArgs, result); } ITE Screen Contents ITE calls "functionName()" (the callback function registered in RegisterScreenContentsCallBack()) to pass the contents of its current screen in XML. The function name must be GetScreenContents. In this real-world example, ITE is running a 5250 script from our host simulator application, WinDemo. In the 5250 Welcome screen, press Enter and then choose Miscellaneous > Fields Test. The next screen appears: This screen is sent back, in an xml format, to the client that called the RegisterScreenContents function. This format is a value structure with four members: 158 Intermec Terminal Emulator (ITE) Programmer's Reference Manual

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Appendix B — About RPC Implementation
158
Intermec Terminal Emulator (ITE) Programmer’s Reference Manual
ITC.doWebBrowser
This function takes a single parameter - a string representing the url address of a
web page that the client wants to invoke (such as http://www.intermec.com). This
function invokes the web browser by sending the WM_BROWSER_INVOKE
message to ITE with the lParam set to the url address of the web page to be invoked.
It will only allow you to open a single web page. If a web page is already opened then
this function is ignored.
Example:
void InvokeWeb (void)
{
noArgs = "http://google.com";
c->execute("ITC.doWebBrowser", noArgs, result);
}
ITC.closeWebBrowser
This function does not take any parameters. This function sends the
WM_BROWSER_CLOSE message to the ITE application. When the ITE application
sees this message it sends a WM_CLOSE to the handle of the open web page.
Example:
void CloseWeb (void)
{
noArgs = "";
c->execute("ITC.closeWebBrowser", noArgs, result);
}
ITE Screen Contents
ITE calls “functionName()” (the callback function registered in
RegisterScreenContentsCallBack())
to pass the contents of its current
screen in XML. The function name must be
GetScreenContents
.
In this real-world example, ITE is running a 5250 script from our host simulator
application, WinDemo. In the 5250 Welcome screen, press
Enter
and then choose
Miscellaneous
>
Fields Test
. The next screen appears:
This screen is sent back, in an xml format, to the client that called the
RegisterScreenContents function. This format is a value structure with four
members: