diff -r 4d198a32ac7d -r d4809db37847 plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-A8DAB890-1BB6-42C6-8448-05F38EAFE985.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-A8DAB890-1BB6-42C6-8448-05F38EAFE985.html Thu Aug 19 17:48:04 2010 -0700 @@ -0,0 +1,25 @@ + + +
Description:
+The setDisplayLandscape
method changes the orientation of a widget's screen to the landscape mode.
Syntax:
+[void] window.widget.setDisplayLandscape(void)+
or
+[void] widget.setDisplayLandscape(void)+
Arguments:
+This method does not take any arguments.
+Return value:
+This method does not return a value.
+Remarks:
+setDisplayLandscape()
should be used only if a device supports screen orientation changes. To check this, use the isrotationsupported
property.
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.
+For more information on handling screen orientation changes in a widget, see Designing for dynamic screen orientation.
+Example code:
+if (widget.isrotationsupported) + // change the screen orientation + widget.setDisplayLandscape();+