WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Boxes Functions
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Centering BoxesUp and Some General Explanation of Boxes Coordinates

Keywords: 	 centering boxesup coordinates

Question:

How do you center your Box? I want it to display right in the middle of the screen. I have this code. I have altered each number to many different things and it will not show up right in the middle.
	BoxesUp("100,200,400,400", @Normal)
Do I use another Box Command?

Answer:

The screen is 1000*1000.

Assuming you want your box 300 wide and 200 tall

BoxesUp("350,400,650,600",@normal)
The numbers are derived as follows:

300 wide = 150 on each side of center
200 tall = 100 on each side of center

left=500-150
right=500+150
top=500-100
bottom=500+100
BoxesUp parameters are:
left,top,right,bottom
or
x1,y1,x2,y2
Where x1,y1 is the upper left corner. and x2,y2 is the lower right.
Article ID:   W14574
Filename:   Centering BoxesUp and Some General Explanation Too.txt
File Created: 2000:07:28:14:24:04
Last Updated: 2000:07:28:14:24:04