BB___UpperLeftY

=UpperLeftY= toc

Description
> Sets the vertical distance in pixels of the window from the upper left corner of the screen. If no value is set, Windows will use a default position. >> See also DisplayWidth and DisplayHeight.

Syntax
//The command is case sensitive.//
 * 1)              (**using a pixel value**)
 * 2)            (**using a variable**)
 * 3)  (**centered on screen**)

Hints

 * //**Statements.**// Statements for sizing and positioning a window must be made before the window is OPENed.
 * //**Using DisplayHeight**// This special variable contains the height of the display screen in pixels and is available to be used to set the window's position.
 * //**Using a Variable.**// You must declare the variable's value before using it in the position expression.

Example
code format="lb" 'This example shows different ways to set your window size and position. nomainwin [openStatus] statusWindowHeight = int(DisplayHeight/3)

WindowWidth = 600 WindowHeight = statusWindowHeight UpperLeftX = int((DisplayWidth-WindowWidth)/2) UpperLeftY = 100

statictext #stats.w "", 50, 75, 400, 25 statictext #stats.h "", 50, 125, 400, 25

open "Status Window" for window as #stats #stats "trapclose [quit]"

#stats.w "Screen width is ";DisplayWidth

#stats.h "Screen height is ";DisplayHeight wait [quit] close #stats end code

Useful Functions
code format="lb" Place a useful function using this command here code