CAPTURE Method

 

Takes a screen shot of the Window and saves it to file

 

 

Description:

 

This Method can be used to take a screen shot of a specified Window and save it as a bitmap (.BMP) file

 

Syntax:

 

    <cWindowName>.CAPTURE [ ( <cFilename>, <nRow>, <nCol>, <nWidth>, <nHeight> ) ]

 

Parameters:

 

The following optional parameters can be used;

 

    <cFilename> - Defines the name of the file to save the file too

    <nRow>       - Sets the row number to capture from (default is 0)

    <nCol>       - Sets the column number to capture from (default is 0)

    <nWidth>     - Sets the width to capture (default is the width of the Window client work area)

    <nHeight>    - Sets the height to capture (default is the height of the Window client work area)

 

Valid For Use With:

 

This command can be used for all definable Window types

 

Notes:

  1. SAVEWINDOW() is a "hidden" HMG Function that did not appear to have been documented anywhere previously. This can also be used to save a screen shot of the Window

  2. The original version of the help file for this item can be viewed here