Window; Error Codes - AMX Mouse User Manual

Table of Contents

Advertisement

e.g. *WINDOW 1,30,18,1, title
The purpose of this command is to draw a window on the screen. The window has a
border which is especially effective when windows overlap. If a title string is given in the
parameters then it will be printed on the top line of the window, with a horizontal line
beneath it.
The window co-ordinates are specified as text co-ordinates as in a VDU 28
command, i.e. bottom left corner (Ix, by) followed by the top right corner (rx,ty): The range
of these co-ordinates is 0 - 19/39/79 horizontally and 0 - 31 vertically according to the
screen mode.
Nine error codes can be generated by the ROM and are listed below:
164 Insufficient Arguments
165 Illegal icon no:
166 Pointer already hidden
167 BREAK not pressed
168 Illegal mode
169 Pointer switched off
170 Mouse switched off
171 Define file error
254 Bad command
The above errors can be trapped in your program by using an ON ERROR GOTO
command.

Advertisement

Table of Contents
loading

Table of Contents