This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathclone.lcdoc
More file actions
73 lines (51 loc) · 2.03 KB
/
clone.lcdoc
File metadata and controls
73 lines (51 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Name: clone
Type: command
Syntax: clone [invisible] <object> [as <newName>]
Summary:
Duplicates an <object(glossary)>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server
Example:
clone field 1
Example:
clone the selectedObject
Example:
clone this card as "clonedCard"
Example:
clone invisible stack "myStack"
Parameters:
object:
An object or stack reference or an expression that resolves to either.
newName:
An optional name for the new object.
It:
The <clone> command places the long id property of the newly created
object in the <it> variable.
Description:
Use the <clone> <command> to create a copy of an existing
<object(glossary)>.
If the <object(glossary)> is a <control>, its copy is placed on the
<current card>, 32 <pixels> below and to the right of the original
<object(glossary)>. The copy's <name> and other <properties> are the
same as those of the original. If the <object(glossary)> is a <grouped
control>, the clone is also <owner|owned> by the <group>.
>*Note:* If invisible is specified the new object will have its
> visible
>property set to false.
If the <object(glossary)> is a <card>, the copy becomes the
<current card>.
If the <object(glossary)> is a <stack>, the newly created <stack> is
opened. It is named "Copy of" and the stack's name.
The <clone> <command> does not affect the contents of the <clipboard>.
If the 'as' variant is used, the newly created object is given the
specified name.
References: create card (command), paste (command), group (command),
copy (command), create stack (command), clipboard (function),
object (glossary), grouped control (glossary), current card (glossary),
owner (glossary), command (glossary), card (keyword), control (keyword),
it (keyword), newAudioclip (message), newButton (message),
newCard (message), newGroup (message), newPlayer (message),
newGraphic (message), newField (message), newScrollbar (message),
newEPS (message), newImage (message), newVideoclip (message),
stack (object), pixels (property), properties (property), name (property)