Utility library ShelWrite() debug()
Programming guideline of WinDom

GrectCenter()

NAME

GrectCenter - center an area to screen.

PROTOTYPAGE

void GrectCenter( int w, int h, INT16 *x, INT16 *y )

PARAMETERS

w, h:
width abd height of the area (input),

x, y:
coordinate of the centered area (output).

DESCRIPTION

GrectCenter() computes the coordinates of an area in order to centering it at screen. This function is used by WindOpen(), window formular and classic formular functions to center the window or the formular at screen. GrectCenter() replaces the AES function form_center().

User can change the way GrectCenter() centers the areas by editing the variable windom.window.center in the WinDom configuration file. Windows and formulars can be centered at screen, centered on the mouse sprite, etc.

SEE ALSO

WindOpen(), FormCreate(), WindFormBegin(), FormBegin(), form_center(), windom.window.center.