You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scilab/modules/gui/help/en_US/findobj.xml
+62-9Lines changed: 62 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,13 @@
7
7
<refsynopsisdiv>
8
8
<title>Syntax</title>
9
9
<synopsis>
10
-
h = findobj(propertyName, propertyValue)
10
+
h = findobj()
11
+
h = findobj(propertyName, propertyValue)
12
+
h = findobj(propertyName, propertyValue, operator, propertyName, propertyValue, ...)
13
+
h = findobj("-property", propertyName, ...)
14
+
h = findobj(searchHandles, ...)
15
+
h = findobj(..., '-depth', d, ...)
16
+
h = findobj(..., '-flat', ...)
11
17
</synopsis>
12
18
</refsynopsisdiv>
13
19
<refsection>
@@ -22,31 +28,60 @@
22
28
<varlistentry>
23
29
<term>propertyValue</term>
24
30
<listitem>
25
-
<para>string character specify the value the tested property should be equal to (case sensitive).</para>
31
+
<para>character string specify the value the tested property should be equal to (case sensitive).</para>
32
+
</listitem>
33
+
</varlistentry>
34
+
<varlistentry>
35
+
<term>operator</term>
36
+
<listitem>
37
+
<para>character string belonging to the set {"-and", "-or", "-not"}.</para>
38
+
</listitem>
39
+
</varlistentry>
40
+
<varlistentry>
41
+
<term>searchHandles</term>
42
+
<listitem>
43
+
<para>Vector of graphic handles where the search is restricted to.</para>
44
+
</listitem>
45
+
</varlistentry>
46
+
<varlistentry>
47
+
<term>d</term>
48
+
<listitem>
49
+
<para>positive integer, the depth of the search.</para>
26
50
</listitem>
27
51
</varlistentry>
28
52
<varlistentry>
29
53
<term>h</term>
30
54
<listitem>
31
-
<para>handle of the found object.</para>
55
+
<para>handles of the found objects.</para>
32
56
</listitem>
33
57
</varlistentry>
34
58
</variablelist>
35
59
</refsection>
36
60
<refsection>
37
61
<title>Description</title>
38
62
<para>
39
-
This routine is currently used to find objects knowing their 'tag'
40
-
property. It returns handle of the first found object which property
41
-
<emphasisrole="italic">propertyName</emphasis> is equal to <emphasisrole="italic">propertyValue</emphasis>. If such an object does not exist, the
63
+
Without arguments <literal>findobj</literal> returns handles of all graphic objects and their descendants. If such an object does not exist, the
42
64
function returns an empty matrix.
43
65
</para>
66
+
<para>
67
+
<literal>findobj(propertyName, propertyValue, ...)</literal> returns the handles of objects having the property <literal>propertyName</literal> set to <literal>propertyValue</literal>.
68
+
If successive property/vaue pairs are given the handles of objects verifing all conditions are returned, i.e. there is an implicit <literal>"-and"</literal> operator between pairs.
69
+
Another operator can be explicitely given with <literal>findobj(propertyName, propertyValue, operator, propertyName, propertyValue, ...)</literal>.
70
+
</para>
71
+
<para>The priority of evaluations in a composite condition using operators can be controlled by using a cell argument, e.g. <literal>findobj({propertyName, propertyValue, ...}, operator, ...)</literal>
72
+
</para>
73
+
<para>
74
+
<literal>findobj("-property", propertyName, ...)</literal> returns the handles of objects having the property <literal>propertyName</literal>. Other conditions can be added.
75
+
</para>
76
+
<para>
77
+
By default the search is done within all figures and <literal>findobj(searchHandles, ...)</literal> restricts the search to the given handles. The depth of the search is by default infinite and can be restricted by <literal>findobj(searchHandles, '-depth', d, ...)</literal>. A value of 0 restricts the search to objects given in <literal>searchHandles</literal> and does not search within descendants, this is equivalent to the <literal>"flat"</literal> optional string.
0 commit comments