org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-BE6DC1F8-A847-49B5-A3BF-318D0D1E9D8A.html
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="setDimmed()"/><meta name="DC.Relation" scheme="URI" content="GUID-A022ED1B-E618-4C44-A437-78393900599C"/><meta name="DC.Relation" scheme="URI" content="GUID-E869B263-7EBF-4590-890B-563871C438C6"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-BE6DC1F8-A847-49B5-A3BF-318D0D1E9D8A"/><title>setDimmed() </title><script type="text/javascript">
function initPage() {}
</script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-BE6DC1F8-A847-49B5-A3BF-318D0D1E9D8A">setDimmed()</h1><div>
<p><strong>Description:</strong></p>
<p>Call the <code>setDimmed</code> method to show or hide an existing
menu item. By default, a menu item is shown when it is appended to the options
menu.</p>
<p>For more general information on constructing an options menu, see <a href="GUID-94946735-D23B-49C6-BB65-8BE31737AE42.html#GUID-94946735-D23B-49C6-BB65-8BE31737AE42">Using softkeys</a>.</p>
<p><strong>Syntax:</strong></p>
<pre class="codeblock" id="GUID-17ADFEFF-76AB-4B44-8C2A-F1591A6E5159">[void] MenuItem.setDimmed(Boolean flag) </pre>
<p><strong>Arguments:</strong></p>
<ul>
<li><p><code>flag</code>:</p>
<p><code>true</code> to hide the menu item, and <code>false</code> to
show the menu item.</p>
</li>
</ul>
<p><strong>Return value:</strong></p>
<p>This method does not return a value.</p>
<p><strong>Example code:</strong></p>
<p>See the example code in the description of the <a href="GUID-A022ED1B-E618-4C44-A437-78393900599C.html#GUID-A022ED1B-E618-4C44-A437-78393900599C"><code>MenuItem.onSelect</code></a> property.</p>
</div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>