Difference between revisions of "TSCARClient.Clone"
From SCAR Divi Manual
(Created page with "==Definition== Member of TSCARClient. <source lang="scar" lines="false"> function TSCARClient.Clone: TSCARClient; </source> ==Availability== SCAR Divi 3.35 > Current ==Desc...") |
|||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
− | Creates a new [[TSCARClient]] object which is a copy of the first. The method will return ''nil'' when it did not succeed, or the client can't be cloned. | + | Creates a new [[TSCARClient]] object which is a copy of the first, the actual effect may depend on the implementation of the client. The method will return ''nil'' when it did not succeed, or the client can't be cloned. |
===Implementations=== | ===Implementations=== |
Latest revision as of 18:16, 22 July 2012
Definition
Member of TSCARClient.
function TSCARClient.Clone: TSCARClient;
Availability
SCAR Divi 3.35 > Current
Description
Creates a new TSCARClient object which is a copy of the first, the actual effect may depend on the implementation of the client. The method will return nil when it did not succeed, or the client can't be cloned.
Implementations
- TSCARWindowClient: No additional effects.
- TSCARBitmapClient: Both objects will target the same bitmap object. The bitmap object is NOT cloned.
- TSCARLibraryClient: The implementation depends on the library, refer to the library's documentation.
Example
begin SetClient(GetClient.Clone).Free; end.