Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92838802
Function_reference4_1.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 24, 03:04
Size
7 KB
Mime Type
text/html
Expires
Tue, Nov 26, 03:04 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22498896
Attached To
rINSTCONTROL Instrument Control
Function_reference4_1.html
View Options
<html xmlns:saxon="http://icl.com/saxon">
<head>
<link rel="stylesheet" type="text/css" href="doc.css"/>
<link rel="stylesheet" type="text/css" href=""/>
<meta author="The MathWorks Ltd."/>
<meta copyright="2017 The MathWorks Ltd."/>
<title>uix.Empty</title>
</head>
<body>
<table class="header" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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>
<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>
</tr>
</table>
<br clear="all"/>
<h2>4.1: uix.Empty <a href="Function_reference.html#4"><img src="Images/uparrow.png" border="0" align="top" alt="Go back up one level"/></a></h2>
<p>Create an empty space</p>
<dl>
<dt><code class="OUTARG">obj</code><code class="FUNCTION"> = uix.Empty(</code><code class="FUNCTION"> )</code></dt>
<dd>creates an empty space object that can be
used in layouts to add gaps between other elements.</dd>
<dt><code class="OUTARG">obj</code><code class="FUNCTION"> = uix.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>
<dd>also sets one or more property values.</dd>
</dl>
<h3>uix.Empty properties</h3>
<p>The empty space is achieved using a container that monitors
its parent's color and changes its own to match.</p>
<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>Deletion status.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>HandleVisibility </code></td><td valign="top" class="PROPERTYTABLE"><value>on | off</value></td><td valign="top" class="PROPERTYTABLE"><description>Visibility of the object.</description></td></tr><tr><td valign="top" class="PROPERTYTABLE"><code>Parent </code></td><td valign="top" class="PROPERTYTABLE"><value>empty GraphicsPlaceholder array | figure | container</value></td><td valign="top" class="PROPERTYTABLE"><description>Parent of the object.</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>Position (x,y) and size (w,h) within figure or container.</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>Tag to associate with object.</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>Type of graphics object.</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>Position units.</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>Visibility.</description></td></tr></table></center>
<h3>For example:</h3>
<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>();
<!-->> -->box = <a href="uix.HBox.html"><code class="FUNCTION">uix.HBox</code></a>( <code class="STRING">'Parent'</code>, f, <code class="STRING">'Spacing'</code>, 5 );
<!-->> --><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> )
<!-->> --><a href="uix.Empty.html"><code class="FUNCTION">uix.Empty</code></a>( <code class="STRING">'Parent'</code>, box )
<!-->> --><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>
<p style="background-color: #ddddee; margin-left: 20px; margin-right: 20px"><font color="#000022"><center><img src="Images/Empty.png"/></center></font></p>
<br/><b>See also:</b><ul><li><code class="FUNCTION"><a href="uix.HBox.html">uix.HBox</a></code> - for arranging widgets horizontally</li></ul>
<br clear="ALL"/>
<table class="footer" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<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>
<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">uix.GridFlex</font></a></td>
<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>
<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">uix.tracking</font></a></td>
<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>
</tr>
</table>
<font face="Arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">© 2017 The MathWorks Ltd</font>
<TT>• </TT><a href="matlab: termsOfUse">Terms of Use</a>
<TT>• </TT><a href="matlab: helpview([matlabroot,'/patents.txt'])">Patents</a>
<TT>• </TT><a href="matlab: helpview([matlabroot,'/trademarks.txt'])">Trademarks</a>
</body>
</html>
Event Timeline
Log In to Comment