Coordinate Parameters

 

A coordinate is a WinBatch string variable (actually a list) containing four numbers separated by commas. These four numbers define two points on the screen. The first number is the "X" coordinate of the first point, the second number is the "Y" coordinate of the first point, the third number is the "X" coordinate of the second point, and finally the fourth number is the "Y" coordinate of the second point.

 

The "0,0" point is in the upper left of the screen, and the "1000,1000" point is at the lower right.

1000x1000 virtual screen size is based on the primary monitor in a multi-monitor display configuration.

 

With just these two points, WinBatch can size and place a number of items.

 

Rectangles:

The first point defines the upper left corner of a rectangle, and the second point defines the lower right.

Circles and Ellipses:

The first point defines the upper left corner of a bounding box for the Ellipse, and the second point defines the lower right corner of the bounding box. The ellipse will touch the bounding box at the center of each side of the bounding box.

Lines:

The two points represent the beginning and end of a line

Windows:

The first point defines the upper left corner of a window, and the second point defines the lower right.

 

 

BoxBitmap

BoxButtonDraw

BoxDrawCircle

BoxDrawLine

BoxDrawRect

BoxDrawText

BoxesUp

BoxNew