PrintFormPict Method (WINDOW)


PLBCMP GUI Only

 

The PrintFormPict method outputs a screenshot of a WINDOW to the current default printer. The method uses the following format:

 

[label]

{object}.PrintFormPict

[GIVING {return}] [USING [*Hwnd=]{hwnd}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A WINDOW object that is accessed.

return

Optional. A Numeric Variable that receives the result of the method.

hwnd

Optional. A Numeric Variable or decimal number that is a GUI object control handle.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the {return} value is zero, the PrintFormPict method executed successfully. When a non-zero value is returned, the method failed to execute.

  2. The OVER flag is set TRUE if the {return} numeric variable is too small to receive the return value.

  3. The EOS flag is always set to be FALSE.

  4. If the {hwnd} value is zero, this method outputs a screenshot of the desktop. If the {hwnd} is not specified, the hwnd of the WINDOW object executing the method is used. If the {hwnd} is non-zero, the value must be a valid handle of a GUI object as determined by the HWND property.

  5. This method does nothing when using the PWS server and the {return} value is always zero.

 

 

See Also: Method Syntax, WINDOW Methods

 



PL/B Language Reference PrintForm Method (WINDOW) Refresh Method (WINDOW)