diff -r 913c9751c067 -r 716254ccbcc0 org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-69A2FEC3-0BB7-4165-A473-76F1823A4534.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-69A2FEC3-0BB7-4165-A473-76F1823A4534.html Fri Mar 05 19:11:15 2010 -0800 @@ -0,0 +1,25 @@ + + +setDisplayPortrait()

setDisplayPortrait()

+

Description:

+

The setDisplayPortrait method changes the orientation of a widget's screen to the portrait mode.

+

Syntax:

+
[void] window.widget.setDisplayPortrait(void) 
+

or

+
[void] widget.setDisplayPortrait(void)
+

Arguments:

+

This method does not take any arguments.

+

Return value:

+

This method does not return a value.

+

Remarks:

+

setDisplayPortrait() 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.setDisplayPortrait();
+
\ No newline at end of file