|
1 |
|
2 <!DOCTYPE html |
|
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
4 <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"> |
|
5 function initPage() {} |
|
6 </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> |
|
7 <p><strong>Description:</strong></p> |
|
8 <p>The <code>setDisplayLandscape</code> method changes the orientation of a widget's screen to the landscape mode.</p> |
|
9 <p><strong>Syntax:</strong></p> |
|
10 <pre class="codeblock" id="GUID-8FF9D0CE-D891-4731-97EA-637E3DC43B8F">[void] window.widget.setDisplayLandscape(void) </pre> |
|
11 <p>or</p> |
|
12 <pre class="codeblock" id="GUID-4CB73AE8-D725-4E60-B77A-0072BA9CB14C">[void] widget.setDisplayLandscape(void)</pre> |
|
13 <p><strong>Arguments:</strong></p> |
|
14 <p>This method does not take any arguments.</p> |
|
15 <p><strong>Return value:</strong></p> |
|
16 <p>This method does not return a value.</p> |
|
17 <p><strong>Remarks:</strong></p> |
|
18 <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> |
|
19 <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> |
|
20 <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> |
|
21 <p><strong>Example code:</strong></p> |
|
22 <pre class="codeblock" id="GUID-378086C9-48D4-463D-AFCA-C030B00FD724">if (widget.isrotationsupported) |
|
23 // change the screen orientation |
|
24 widget.setDisplayLandscape();</pre> |
|
25 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html> |