org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-A8DAB890-1BB6-42C6-8448-05F38EAFE985.html
author Eugene Ostroukhov <eugeneo@symbian.org>
Wed, 26 May 2010 17:01:34 -0700
changeset 341 480716493610
parent 229 716254ccbcc0
permissions -rw-r--r--
Set content type for png files


<!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="setDisplayLandscape()"/><meta name="DC.Relation" scheme="URI" content="GUID-69A2FEC3-0BB7-4165-A473-76F1823A4534"/><meta name="DC.Relation" scheme="URI" content="GUID-180F11FD-8D26-4305-814F-01BF8DB2DDC8"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-6CD2776F-A868-4280-967F-4EB426212556"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-A8DAB890-1BB6-42C6-8448-05F38EAFE985"/><title>setDisplayLandscape() </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-A8DAB890-1BB6-42C6-8448-05F38EAFE985">setDisplayLandscape()</h1><div>
<p><strong>Description:</strong></p>
<p>The <code>setDisplayLandscape</code> method changes the orientation of a widget's screen to the landscape mode.</p>
<p><strong>Syntax:</strong></p>
<pre class="codeblock" id="GUID-8FF9D0CE-D891-4731-97EA-637E3DC43B8F">[void] window.widget.setDisplayLandscape(void) </pre>
<p>or</p>
<pre class="codeblock" id="GUID-4CB73AE8-D725-4E60-B77A-0072BA9CB14C">[void] widget.setDisplayLandscape(void)</pre>
<p><strong>Arguments:</strong></p>
<p>This method does not take any arguments.</p>
<p><strong>Return value:</strong></p>
<p>This method does not return a value.</p>
<p><strong>Remarks:</strong></p>
<p><code>setDisplayLandscape()</code> should be used only if a device supports screen orientation changes. To check this, use the <a href="GUID-6CD85E8A-698E-4BE2-B965-887E66E51ACC.html#GUID-6CD85E8A-698E-4BE2-B965-887E66E51ACC"><code>isrotationsupported</code></a> property.</p>
<p>This method only changes the orientation of the screen. It does not change the behavior of other UI components of a device such as the softkeys and their associated keys.</p>
<p>For more information on handling screen orientation changes in a widget, see <a href="GUID-36CDDA1B-3B62-4936-9E06-7935AAD1CD77.html#GUID-36CDDA1B-3B62-4936-9E06-7935AAD1CD77">Designing for dynamic screen orientation</a>.</p>
<p><strong>Example code:</strong></p>
<pre class="codeblock" id="GUID-378086C9-48D4-463D-AFCA-C030B00FD724">if (widget.isrotationsupported)
   // change the screen orientation
   widget.setDisplayLandscape();</pre>
</div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>