forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroup.lcdoc
More file actions
41 lines (24 loc) · 1.31 KB
/
group.lcdoc
File metadata and controls
41 lines (24 loc) · 1.31 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
Name: group
Type: command
Syntax: group [<objectList>]
Summary: Creates a new <group> and adds the <selected> <object|objects> to it.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
group
Example:
if the number of lines of the selectedObject > 1 then group
Example:
group field "Help" and image "Help Icon" and graphic "Outline"
Parameters:
objectList: A list of object references, separated by the word "and".
Description:
Use the <group> <command> after <select|selecting> <object|objects> to make a <group> out of them.
If you specify an <objectList>, the specified <object|objects> are placed in the new <group>. Otherwise, the <selected> <object> or <object|objects> are placed in the <group>.
As with any group on a card, you can use the place <command> to make the newly-created <group> appear on other <card|cards>.
>*Tip:* To refer to the newly-created <group>, use the <last> <keyword> :
group button "Yes" and button "No"
set the name of last group to "Do It"
References: selected (property), relayerGroupedControls (property), layer (property), newGroup (message), last (keyword), card (object), object (object), selectedObject (function), group (command), start editing (command), command (glossary), keyword (glossary), select (glossary)
Tags: objects