source: MML/trunk/machine/SOLEIL/common/toolbox/GUILayout/layoutHelp/User guide5_1.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 4.1 KB
Line 
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>Context help</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="User guide.html"><font face="Arial" bgcolor="#e4f0f8" size="+0" underline="0" color="#000000"><b>User guide</b></font></A></td>
15            <td width="36" bgcolor="#e4f0f8"><A HREF="User guide5.html"><IMG SRC="Images/leftarrow.png" BORDER="0" ALT="previous page"/></A><A HREF="User guide5_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>5.1: Context help&nbsp;<a href="User guide5.html"><img src="Images/uparrow.png" border="0" align="top" alt="Go back up one level"/></a></h2>
23     
24        <p>
25            When a <a href="uiextras.BoxPanel.html"><code class="FUNCTION">uiextras.BoxPanel</code></a> has its "HelpFcn"
26            filled in, a help button (<img src="Images/panelHelp.png"/>) is shown in the upper-right of the
27            title-bar. When the user clicks this button the specified function
28            is called.
29        </p>
30        <h3>For example:</h3>
31                <para>Here we hookup the HelpFcn to simply bring up
32            the MATLAB documentation for each command. Clicking any of the "?" buttons
33        will cause the MATLAB help browser to open.</para>
34                <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>( 'Name', 'uiextras.BoxPanel Help Example' );
35b = <a href="uiextras.HBox.html"><code class="FUNCTION">uiextras.HBox</code></a>( 'Parent', f );
36<a href="uiextras.BoxPanel.html"><code class="FUNCTION">uiextras.BoxPanel</code></a>( 'Parent', b, 'Title', 'sin', 'HelpFcn', @(a,b) doc('sin') );
37<a href="uiextras.BoxPanel.html"><code class="FUNCTION">uiextras.BoxPanel</code></a>( 'Parent', b, 'Title', 'cos', 'HelpFcn', @(a,b) doc('cos') );
38<a href="uiextras.BoxPanel.html"><code class="FUNCTION">uiextras.BoxPanel</code></a>( 'Parent', b, 'Title', 'tan', 'HelpFcn', @(a,b) doc('tan') );
39</font></pre>
40                <p style="background-color: #ddddee; margin-left: 20px; margin-right: 20px"><font color="#000022"><center><img src="Images/BoxPanelHelpExample.png"/></center></font></p>
41           
42       
43   
44     
45      <br clear="ALL"/>
46      <table class="footer" width="100%" border="0" cellspacing="0" cellpadding="0">
47         <tr>
48            <td width="18" height="15" bgcolor="#e4f0f8" align="left"><a href="User guide5.html"><img src="images/leftarrow.png" border="0" alt="previous page"/></a></td>
49            <td width="40%" height="15" bgcolor="#e4f0f8" align="left"><a href="User guide5.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">Advanced maneuvers with panels</font></a></td>
50            <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>
51            <td width="40%" height="15" bgcolor="#e4f0f8" align="right"><a href="User guide5_2.html"><font face="arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">Minimize and maximize</font></a></td>
52            <td width="18" height="15" bgcolor="#e4f0f8" align="right"><a href="User guide5_2.html"><img src="images/rightarrow.png" border="0" alt="next page"/></a></td>
53         </tr>
54      </table>
55      <font face="Arial" bgcolor="#e4f0f8" size="normal" underline="0" color="#000000">&copy; 2011 The MathWorks Ltd</font>
56      <TT>&#149; </TT><a href="matlab: helpview([matlabroot,'/license.txt'])">Terms of Use</a>
57      <TT>&#149; </TT><a href="matlab: helpview([matlabroot,'/patents.txt'])">Patents</a>
58      <TT>&#149; </TT><a href="matlab: helpview([matlabroot,'/trademarks.txt'])">Trademarks</a>
59   
60   </body>
61</html>
62       
Note: See TracBrowser for help on using the repository browser.