Skip to content

Commit 4c192bb

Browse files
Merge 6.6.2 update into refactor-syntax_unicode
1 parent 54a7374 commit 4c192bb

148 files changed

Lines changed: 2088 additions & 1521 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/dictionary/command/create.xml

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1 @@
1-
<doc>
2-
<legacy_id>1654</legacy_id>
3-
<name>create</name>
4-
<type>command</type>
5-
6-
<syntax>
7-
<example>create [invisible] <i>type</i> [<i>name</i>] [in <i>group</i>]</example>
8-
</syntax>
9-
10-
<synonyms>
11-
<synonym>new</synonym>
12-
</synonyms>
13-
14-
<summary>Creates a new <glossary tag="object">object</glossary> on the <glossary tag="current card">current card</glossary>.</summary>
15-
16-
<examples>
17-
<example>create button "Click Me"</example>
18-
<example>create invisible field in group 1</example>
19-
</examples>
20-
21-
<history>
22-
<introduced version="1.0">Added.</introduced>
23-
<deprecated version=""></deprecated>
24-
<removed version=""></removed>
25-
26-
<experimental version=""></experimental>
27-
<nonexperimental version=""></nonexperimental>
28-
</history>
29-
30-
<objects>
31-
</objects>
32-
33-
<platforms>
34-
<mac/>
35-
<windows/>
36-
<linux/>
37-
<ios/>
38-
<android/>
39-
</platforms>
40-
41-
<classes>
42-
<desktop/>
43-
<server/>
44-
<web/>
45-
<mobile/>
46-
</classes>
47-
48-
<security>
49-
</security>
50-
51-
52-
<classification>
53-
<category>Objects &amp; Messages</category>
54-
<category>Standalone Applications</category>
55-
</classification>
56-
57-
<references>
58-
<command tag="create stack">create stack Command</command>
59-
<command tag="create card">create card Command</command>
60-
</references>
61-
62-
<description>Use the <b>create</b> <glossary tag="command">command</glossary> to make a new <keyword tag="control">control</keyword> or <glossary tag="grouped control">grouped control</glossary>.<p></p><p><b>Parameters:</b></p><p>The <i>type</i> is any <keyword tag="control">control</keyword> that can be on a <keyword tag="card">card</keyword>:,,,, ,, or.</p><p></p><p>The <i>name</i> is the name of the newly created <glossary tag="object">object</glossary>. If you don't specify a <i>name</i>, the <glossary tag="object">object</glossary> is created with a <keyword tag="default">default</keyword> name.</p><p></p><p>The <i>group</i> is any <command tag="group">group</command> that's on the <glossary tag="current card">current card</glossary>. If you specify a <i>group</i>, the new <glossary tag="object">object</glossary> is a member of the <command tag="group">group</command>, and exists on each <keyword tag="card">card</keyword> that has the <command tag="group">group</command>. If you don't specify a <command tag="group">group</command>, the <glossary tag="object">object</glossary> is created on the <glossary tag="current card">current card</glossary> and appears only on that <keyword tag="card">card</keyword>.</p><p></p><p><b>Comments:</b></p><p>The new object takes its properties from the corresponding template; for example, newly created buttons match the properties of the <b>templateButton</b>.</p><p></p><p>If you use theform, the object is created with its <b>visible</b> <glossary tag="property">property</glossary> set to false, so it cannot be seen. Use this form to create a hidden <glossary tag="object">object</glossary>, change its appearance or position, then make it visible.</p><p></p><p>The <b>create</b> <glossary tag="command">command</glossary> places the <property tag="ID">ID</property> <glossary tag="property">property</glossary> of the newly created <glossary tag="object">object</glossary> in the <keyword tag="it">it</keyword> <glossary tag="variable">variable</glossary>.</p><p></p><p>When the new control is created, the Pointer tool is automatically chosen. If you use the <b>create</b> <glossary tag="command">command</glossary> in a <glossary tag="handler">handler</glossary>, you can use the following <glossary tag="statement">statement</glossary> after the <b>create</b> <glossary tag="command">command</glossary> to resume using the <glossary tag="Browse tool">Browse tool</glossary>:</p><p></p><p></p><p></p><p></p><note>In the <glossary tag="development environment">development environment</glossary>, after an <glossary tag="object">object</glossary> is created, LiveCode automatically resets the corresponding <glossary tag="template">template</glossary> to its <keyword tag="default">default</keyword> values. This means that if you change an <glossary tag="object">object</glossary><glossary tag="template">template</glossary> and then create several <glossary tag="object">objects</glossary> of that type, only the first <glossary tag="object">object</glossary> will reflect your settings. To prevent LiveCode from automatically setting the <glossary tag="template">template</glossary> back to its <glossary tag="default">defaults</glossary>, set the <property tag="lockMessages">lockMessages</property> property to true before creating the <glossary tag="object">objects</glossary>:</note><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>LiveCode resets the template only when in the development environment, not in standalone applications.</p><p></p><p></p><tip>To create a <keyword tag="control">control</keyword> in a specific <object tag="stack">stack</object>, first set the <property tag="defaultStack">defaultStack</property> to the <object tag="stack">stack</object> where you want to create the new <keyword tag="control">control</keyword>:</tip></description>
63-
</doc>
1+
<doc> <legacy_id>1654</legacy_id> <name>create</name> <type>command</type> <syntax> <example>create [invisible] <i>type</i> [<i>name</i>] [in <i>group</i>]</example> </syntax> <synonyms> <synonym>new</synonym> </synonyms> <summary>Creates a new object on the current card.</summary> <examples><example>create button "Click Me"</example><example>create invisible field in group 1</example> </examples> <history> <introduced version="1.0">Added.</introduced> <deprecated version=""></deprecated> <removed version=""></removed> <experimental version=""></experimental> <nonexperimental version=""></nonexperimental> </history> <objects> </objects> <platforms> <mac/> <windows/> <linux/> <ios/> <android/> </platforms> <classes> <desktop/> <server/> <web/> <mobile/> </classes> <security> </security> <classification> <category>Objects &amp; Messages</category> <category>Standalone Applications</category> </classification> <references> <command tag="create stack">create stack Command</command> <command tag="create card">create card Command</command> </references> <description> <overview>Use the create command to make a new control or grouped control.</overview> <parameters><parameter><name>type</name><description>A string, one of the following: field, button, image, scrollbar, graphic, player, or EPS.</description></parameter><parameter><name>name</name><description>The name to call the newly created object. If you don't specify a name, the object is created with a default name.</description></parameter><parameter><name>group</name><description>A reference to a group on the current card or a expression that evaluates to a reference.any group that's on the current card. If you specify a group, the new object is a member of the group, and exists on each card that has the group. If you don't specify a group, the object is created on the current card and appears only on that card.</description></parameter> </parameters> <value></value> <comments>The new object takes its properties from the corresponding template; for example, newly created buttons match the properties of the templateButton.<p></p><p>If you use theform, the object is created with its visible property set to false, so it cannot be seen. Use this form to create a hidden object, change its appearance or position, then make it visible.</p><p></p><p>The <b>create</b> command places the ID property of the newly created object in the it variable.</p><p></p><p>When the new control is created, the Pointer tool is automatically chosen. If you use the create command in a handler, you can use the following statement after the create command to resume using the Browse tool:</p><p></p><p><font face="Lucida Grande" size="11" color="#000000">send "choose browse tool" to me in 1 tick</font></p><p></p><p><note> In the development environment, after an object is created, LiveCode automatically resets the corresponding template to its default values. This means that if you change an objecttemplate and then create several objects of that type, only the first object will reflect your settings. To prevent LiveCode from automatically setting the template back to its defaults, set the lockMessages property to true before creating the objects:</p><p></note><p>LiveCode resets the template only when in the development environment, not in standalone applications.</p><p></p><p><font face="Lucida Grande" size="11" color="#000000">set the borderWidth of the templateButton to 8</font></p><p><font face="Lucida Grande" size="11" color="#000000">lock messages</font></p><p><font face="Lucida Grande" size="11" color="#000000">repeat for 5 times</font></p><p><font face="Lucida Grande" size="11" color="#000000">create button</font></p><p><font face="Lucida Grande" size="11" color="#000000">end repeat</font></p><p><font face="Lucida Grande" size="11" color="#000000">unlock messages</font></p><p></p><p><font face="Lucida Grande" size="11" color="#000000">LiveCode resets the template only when in the development environment, not in standalone applications.</font></p><p></p><p><tip> To create a control in a specific stack, first set the defaultStack to the stack where you want to create the new control:</p><p></tip><p><font face="Lucida Grande" size="11" color="#000000">set the defaultStack to "My Stack"</font></p><p><font face="Lucida Grande" size="11" color="#000000">create button "My Button"</font></p></comments> </description></doc>

0 commit comments

Comments
 (0)