1 | <html xmlns:saxon="http://icl.com/saxon"> |
---|
2 | <head> |
---|
3 | <link rel="stylesheet" type="text/css" href="doc.css"/> |
---|
4 | <link rel="stylesheet" type="text/css" href=""/> |
---|
5 | <meta author="The MathWorks Ltd."/> |
---|
6 | <meta copyright="2011 The MathWorks Ltd."/> |
---|
7 | <title>uiextras.Empty</title> |
---|
8 | </head> |
---|
9 | |
---|
10 | |
---|
11 | <body> |
---|
12 | <table class="header" width="100%" border="0" cellspacing="0" cellpadding="0"> |
---|
13 | <tr> |
---|
14 | <td bgcolor="#e4f0f8"><A href="Function reference.html"><font face="Arial" bgcolor="#e4f0f8" size="+0" underline="0" color="#000000"><b>Function reference</b></font></A></td> |
---|
15 | <td width="36" bgcolor="#e4f0f8"><A HREF="Function reference3_2.html"><IMG SRC="Images/leftarrow.png" BORDER="0" ALT="previous page"/></A><A HREF="Function reference4_2.html"><IMG SRC="Images/rightarrow.png" BORDER="0" ALT="next page"/></A></td> |
---|
16 | </tr> |
---|
17 | </table> |
---|
18 | |
---|
19 | |
---|
20 | <br clear="all"/> |
---|
21 | |
---|
22 | <h2>4.1: uiextras.Empty <a href="Function reference.html#4"><img src="Images/uparrow.png" border="0" align="top" alt="Go back up one level"/></a></h2> |
---|
23 | |
---|
24 | |
---|
25 | <p>Create an empty space</p> |
---|
26 | <dl> |
---|
27 | <dt><code class="OUTARG">obj</code><code class="FUNCTION"> = uiextras.Empty(</code><code class="FUNCTION"> )</code></dt> |
---|
28 | <dd>creates an empty space object that can be |
---|
29 | used in layouts to add gaps between other elements.</dd> |
---|
30 | |
---|
31 | <dt><code class="OUTARG">obj</code><code class="FUNCTION"> = uiextras.Empty(</code><code class="INARG"> param</code><code class="FUNCTION">,</code><code class="INARG"> value</code><code class="FUNCTION">,</code><code class="INARG"> ...</code><code class="FUNCTION"> )</code></dt> |
---|
32 | <dd>also sets one or more property values.</dd> |
---|
33 | |
---|
34 | </dl> |
---|
35 | |
---|
36 | |
---|
37 | <h3>uiextras.Empty properties</h3> |
---|
38 | <center><table frame="box" rules="all" class="PROPERTYTABLE"><tr><th class="PROPERTYTABLE">Property</th><th class="PROPERTYTABLE">Value</th><th class="PROPERTYTABLE">Description</th></tr><tr><td valign="top" class="PROPERTYTABLE"><code>BeingDeleted </code></td><td valign="top" class="PROPERTYTABLE"><value>[ on | off ]</value></td><td valign="top" class="PROPERTYTABLE"><description>is the object in the process of being deleted.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Parent </code></td><td valign="top" class="PROPERTYTABLE"><value>handle</value></td><td valign="top" class="PROPERTYTABLE"><description>The handle of the parent figure or container.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Position </code></td><td valign="top" class="PROPERTYTABLE"><value>[x y w h]</value></td><td valign="top" class="PROPERTYTABLE"><description>The position (x,y) and size (w,h) of the layout.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Tag </code></td><td valign="top" class="PROPERTYTABLE"><value>string</value></td><td valign="top" class="PROPERTYTABLE"><description>A string that can be used to identify this object later.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Type </code></td><td valign="top" class="PROPERTYTABLE"><value>string</value></td><td valign="top" class="PROPERTYTABLE"><description>the object type (class).</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Units </code></td><td valign="top" class="PROPERTYTABLE"><value>[ inches | centimeters | normalized | points | pixels | characters ]</value></td><td valign="top" class="PROPERTYTABLE"><description>The units of measurement for position the layout within its parent.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Visible </code></td><td valign="top" class="PROPERTYTABLE"><value>[ on | off ]</value></td><td valign="top" class="PROPERTYTABLE"><description>Is the object visible on screen.</description></td></tr></table></center> |
---|
39 | |
---|
40 | <h3>For example:</h3> |
---|
41 | <pre style="background-color: #eeeeff; margin-left: 20px; margin-right: 20px"><font color="#000011"><!-->> -->f = <a href="matlab:doc figure"><code class="FUNCTION">figure</code></a>(); |
---|
42 | <!-->> -->box = <a href="uiextras.HBox.html"><code class="FUNCTION">uiextras.HBox</code></a>( <code class="STRING">'Parent'</code>, f, <code class="STRING">'Spacing'</code>, 5 ); |
---|
43 | <!-->> --><a href="matlab:doc uicontrol"><code class="FUNCTION">uicontrol</code></a>( <code class="STRING">'Parent'</code>, box, <code class="STRING">'Background'</code>, <code class="STRING">'r'</code> ) |
---|
44 | <!-->> --><a href="uiextras.Empty.html"><code class="FUNCTION">uiextras.Empty</code></a>( <code class="STRING">'Parent'</code>, box ) |
---|
45 | <!-->> --><a href="matlab:doc uicontrol"><code class="FUNCTION">uicontrol</code></a>( <code class="STRING">'Parent'</code>, box, <code class="STRING">'Background'</code>, <code class="STRING">'g'</code> )</font></pre> |
---|
46 | <p style="background-color: #ddddee; margin-left: 20px; margin-right: 20px"><font color="#000022"><center><img src="Images/Empty.png"/></center></font></p> |
---|
47 | |
---|
48 | <br/><b>See also:</b><ul><li><code class="FUNCTION"><a href="uiextras.HBox.html">uiextras.HBox</a></code> - for arranging widgets horizontally</li></ul> |
---|
49 | |
---|
50 | |
---|
51 | <br clear="ALL"/> |
---|
52 | <table class="footer" width="100%" border="0" cellspacing="0" cellpadding="0"> |
---|
53 | <tr> |
---|
54 | <td width="18" height="15" bgcolor="#e4f0f8" align="left"><a href="Function reference3_2.html"><img src="images/leftarrow.png" border="0" alt="previous page"/></a></td> |
---|
55 | <td width="40%" height="15" bgcolor="#e4f0f8" align="left"><a href="Function reference3_2.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">uiextras.GridFlex</font></a></td> |
---|
56 | <td width="20%" height="15" bgcolor="#e4f0f8" align="center"><a href="index.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">[Top]</font></a></td> |
---|
57 | <td width="40%" height="15" bgcolor="#e4f0f8" align="right"><a href="Function reference4_2.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">layoutVersion</font></a></td> |
---|
58 | <td width="18" height="15" bgcolor="#e4f0f8" align="right"><a href="Function reference4_2.html"><img src="images/rightarrow.png" border="0" alt="next page"/></a></td> |
---|
59 | </tr> |
---|
60 | </table> |
---|
61 | <font face="Arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">© 2011 The MathWorks Ltd</font> |
---|
62 | <TT>• </TT><a href="matlab: helpview([matlabroot,'/license.txt'])">Terms of Use</a> |
---|
63 | <TT>• </TT><a href="matlab: helpview([matlabroot,'/patents.txt'])">Patents</a> |
---|
64 | <TT>• </TT><a href="matlab: helpview([matlabroot,'/trademarks.txt'])">Trademarks</a> |
---|
65 | |
---|
66 | </body> |
---|
67 | </html> |
---|
68 | |
---|