Stylus Module

RhoElements 2.x API

Overview

The Stylus Module is used to enable and disable the touch screen.

Syntax

stylus (Module) <META> Syntax

<META HTTP-EQUIV="Stylus" content="[method]">

Stylus JavaScript Object Syntax:
By default the JavaScript Object 'stylus' will exist on the current page and can be used to interact directly with the stylus.
To Invoke stylus methods via JavaScript use the following syntax: stylus.method();

e.g. stylus.enable();

To set multiple EMML parameters / events on a single line use the following syntax: stylus.setEMML("[Your EMML Tags]");

e.g. stylus.setEMML("enable");

Methods

Items listed in this section indicate methods or, in some cases, indicate parameters which will be retrieved.

NameDescriptionDefault Value
enableEnables the touch screenDevice Dependant
disableDisables the touch screenDevice Dependant

Remarks

Remote Display

This tag does not affect the behaviour of remote display applications for controlling the device

Devices lacking support

Due to platform limitations this API is not available on the following Symbol Technologies' devices:

  1. Workabout Pro 4

Requirements

RhoElements Version1.0.0 or above
Supported DevicesAll supported devices.
Minimum RequirementsTouch Screen.
PersistencePersistent - Changes to this module will persist when navigating to a new page.

HTML/JavaScript Examples

The following example disables the touch screen until the Enter key is pressed:

<META HTTP-EQUIV="Stylus" content="Disabled">
<META HTTP-EQUIV="OnKey0x0d" content="javascript:doTest();">

<SCRIPT>
   function doTest()
   {
      stylus.enable();
   }
</SCRIPT>