WINDREF (Function)


Obtain window information.


WINDREF (<window number>,<item>)


<window number>
Specifies the window number (0 to 511).
<item>
Specifies the item number to obtain (0 to 9).
Item number 0:
Presence of the window setting
Return value
Present = 0
Not present = -1
Item number 1:
Window shape
Return value
(Refer to the table below.)
Item number 2:
Window reference point X coordinate
Item number 3:
Window reference point Y coordinate
Item number 4 to 9:
Window's each setting data
Return value for each setting data (Refer to the table below.)

Item
Window shape
1
4
5
6
7
8
9
Line
(2 point specification)
0
Start point
X coordinate
Start point
Y coordinate
End point
X coordinate
End point
Y coordinate
-1
-1
Line (Length and angle specification)
1
Length
Angle
-1
-1
-1
-1
Circle
2
Radius
-1
-1
-1
-1
-1
Ellipse
3
Width
Height
-1
-1
-1
-1
Sector
4
Outer diameter
Inner diameter
Start angle
End angle
Partition angle
Mode
Rectangle
5
Width
Height
Angle
Mode
-1
-1

  • If nothing is set, -1 is returned as the default.
  • Data obtained is not the initially set data but the current set data.
  • To execute this function, a µVision board (option) is required.



VISSCREEN 1, 0, 1
VISCLS 0
VISCAMOUT 1
WINDMAKE R, 1, 50, 100, 0, 2
FOR I1 = 0 TO 7
FOR I2 = WINDREF(1, I1)
'Obtain window number 1 data
FOR VISLOC 0, I1
'Set the display position
FOR VISPRINT "Data";I1;"=";I2
'Display the window
NEXT I1


Top