Orientation: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
== Description ==
== Description ==


NSB.ShowProgress displays ''message'' to the user near the bottom middle of the screen. It can be dismissed or updated at any time by the program. The user can also dismiss it. Use it to provide the user with information during execution without interrupting execution.
The Orientation control puts up a full screen message if the orientation changes. If your app is only designed to run in Portrait mode and the user rotates to Landscape, it will black out the screen and ask the user to rotate back. The previous content of the screen will display once this happens. It can also be set to make Landscape the allowed orientation.


To dismiss an NSB.showProgress message, call it with no arguments.
== Properties and Methods ==
 
Standard [[properties and methods|properties]] are supported, plus:
{| class="wikitable"
|-
| screenOrientation || Normal orientation: Portrait or Landscape. Design time only.
|}


== Example ==
== Example ==

Revision as of 19:16, 5 January 2013

Description

The Orientation control puts up a full screen message if the orientation changes. If your app is only designed to run in Portrait mode and the user rotates to Landscape, it will black out the screen and ask the user to rotate back. The previous content of the screen will display once this happens. It can also be set to make Landscape the allowed orientation.

Properties and Methods

Standard properties are supported, plus:

screenOrientation Normal orientation: Portrait or Landscape. Design time only.

Example

'This sample shows how to use the NSB.ShowProgress function
 
'Set a global counter and call updateMessage every quarter second
Dim count=0
SetInterval(updateMessage,250)
 
Sub updateMessage()
  count=count+1
  If count<20 Then
    'Display the progress message followed by dots
    NSB.ShowProgress("Loading" & String(count,"."))
  Else
    'Clear the progress message and stop calling updateMessage
    NSB.ShowProgress()
    ClearInterval(updateMessage)
  End If
End Sub
Sub custDone(result)
  Text2.value=result
End Sub

Output

(depends on use. See nsbShowProgress sample)

Related Items

MsgBox