BB___WindowHeight

=WindowHeight= toc

Description
> Sets the height in pixels of the window to be opened. If no value is set, Windows will use a default size. >> See also DisplayWidth and DisplayHeight.

Syntax
//The command is case sensitive.//
 * 1)             (**using a pixel amount**)
 * 2)  (**as a proportion of screen**)
 * 3)      (**as a variable amount**)

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 in the WindowHeight expression for sizing.
 * //**Using a Variable.**// You must declare the variable's value before using it in the sizing 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