CENTER WINDOW Commands

 

Centers a Window when it is displayed (shown) on screen

 

 

Description:

 

This command centers a Window when it is displayed on screen

 

Syntax:

 

    CENTER WINDOW <cFormName1> [ DESKTOP ]

 

    CENTER WINDOW <cFormName1> IN <cFormName2>

 

Valid For Use With:

 

This command can be used for all definable Window types

 

Notes:

  1. This command is only available after the Window has been defined

  2. The CENTER WINDOW <cFormName1> [ DESKTOP ] command places the Window in the center of the screen

  3. The CENTER WINDOW <cFormName1> IN <cFormName2> command will place the first Window over the center of the second Window where ever that is positioned on the screen

  4. The CENTER and CENTERIN Methods are also available and produce the same results as these commands

  5. Other original documentation references the CENTERWORKAREA Method but this will not compile, so may feature a bug in this version

  6. Reference's in the original version of the help file for this item can be viewed here

Sample Code:

 

Sample code to test these Commands can be found here