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.set</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 reference4_3.html"><IMG SRC="Images/leftarrow.png" BORDER="0" ALT="previous page"/></A><A HREF="Function reference4_5.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.4: uiextras.set <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 | |
---|
26 | <p>Store a default property value in a parent object</p> |
---|
27 | <dl> |
---|
28 | <dt><code class="FUNCTION">uiextras.set(</code><code class="INARG"> hObj</code><code class="FUNCTION">,</code><code class="INARG"> propName</code><code class="FUNCTION">,</code><code class="INARG"> propValue</code><code class="FUNCTION"> )</code></dt> |
---|
29 | <dd>stores a default property |
---|
30 | value in the object hObj such that children created inside it of the |
---|
31 | correct class will use the specified value (<code class="INARG">propValue</code>) for |
---|
32 | the specified property by default. The property name should take the |
---|
33 | form "DefaultClassProperty", for example to set the default "TitleColor" |
---|
34 | for the class "uiextras.BoxPanel", use "DefaultBoxPanelTitleColor". |
---|
35 | Note that using the special object handle 0 sets the default for all |
---|
36 | new figures.</dd> |
---|
37 | |
---|
38 | </dl> |
---|
39 | |
---|
40 | <h3>For example:</h3> |
---|
41 | <pre style="background-color: #eeeeff; margin-left: 20px; margin-right: 20px"><font color="#000011"><a href="uiextras.set.html"><code class="FUNCTION">uiextras.set</code></a>( <a href="matlab:doc gcf"><code class="FUNCTION">gcf</code></a>(), <code class="STRING">'DefaultBoxPanelTitleColor'</code>, <code class="STRING">'g'</code> )</font></pre> |
---|
42 | |
---|
43 | <pre style="background-color: #eeeeff; margin-left: 20px; margin-right: 20px"><font color="#000011"><a href="uiextras.set.html"><code class="FUNCTION">uiextras.set</code></a>( 0, <code class="STRING">'DefaultHBoxPadding'</code>, 5 )</font></pre> |
---|
44 | |
---|
45 | <br/><b>See also:</b><ul><li><code class="FUNCTION"><a href="uiextras.get.html">uiextras.get</a></code> - for retrieving a default property value from a parent object</li></ul> |
---|
46 | |
---|
47 | |
---|
48 | <br clear="ALL"/> |
---|
49 | <table class="footer" width="100%" border="0" cellspacing="0" cellpadding="0"> |
---|
50 | <tr> |
---|
51 | <td width="18" height="15" bgcolor="#e4f0f8" align="left"><a href="Function reference4_3.html"><img src="images/leftarrow.png" border="0" alt="previous page"/></a></td> |
---|
52 | <td width="40%" height="15" bgcolor="#e4f0f8" align="left"><a href="Function reference4_3.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">layoutRoot</font></a></td> |
---|
53 | <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> |
---|
54 | <td width="40%" height="15" bgcolor="#e4f0f8" align="right"><a href="Function reference4_5.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">uiextras.get</font></a></td> |
---|
55 | <td width="18" height="15" bgcolor="#e4f0f8" align="right"><a href="Function reference4_5.html"><img src="images/rightarrow.png" border="0" alt="next page"/></a></td> |
---|
56 | </tr> |
---|
57 | </table> |
---|
58 | <font face="Arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">© 2011 The MathWorks Ltd</font> |
---|
59 | <TT>• </TT><a href="matlab: helpview([matlabroot,'/license.txt'])">Terms of Use</a> |
---|
60 | <TT>• </TT><a href="matlab: helpview([matlabroot,'/patents.txt'])">Patents</a> |
---|
61 | <TT>• </TT><a href="matlab: helpview([matlabroot,'/trademarks.txt'])">Trademarks</a> |
---|
62 | |
---|
63 | </body> |
---|
64 | </html> |
---|
65 | |
---|