SetAsClient Method (WINDOW)


10.5, PLBCMP GUI Only

 

The SetAsClient method assigns CLIENT methods to the current WINDOW. Methods may then be executed for the embedded WebView browser thead created for the current Window. The method uses the following format:

 

[label]

{object}.SetAsClient

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A WINDOW object that is accessed.

return

Optional. A Numeric Variable that always returns a zero.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO flag is always set to True.

  2. The EOS and OVER flag are always cleared.

  3. When a WebView object is created on a WINDOW object, a WebView thread is created with an embedded browser.

  4. This method is only needed if a PL/B program has WebView objects created as children on multiple WINDOW objects at the same time. In this case, the SetAsClient identifies which WebView client browser is accessed when CLIENT methods are used in a PL/B program.

 

 

See Also: Method Syntax, WINDOW Methods

 



PL/B Language Reference Scale Method (WINDOW) SetForegroundWindow Method (WINDOW)