beautypg.com

Color, Sound alerts – Sun Microsystems Computer Accessories User Manual

Page 54

background image

40

Wireless Toolkit Basic Customization Guide • December 2003

softbutton.<

number

> = <

x

>,<

y

>,<

width

>,<

height

>,<

font

>,<

align

>

where the parameters are defined as follows:

The coordinates of the soft button label:

x: The x-coordinate of the left edge of the label area, in pixels relative to the
left edge of the screen area

y: The y-coordinate of the top edge of the label area, in pixels relative to the
top edge of the screen area

width: The width of the label, in pixels

height: The height of the label, in pixels

font: The font of the soft button label

align: The alignment of the text of the soft button label within its area: "left",
"right" or "center"

For example:

softbutton.0 = 0,110,36,18, softButton, left

softbutton.1 = 60,110,36,18, softButton, right

Color

Three properties are provided to control the color in the Emulator:

The

isColor

property determines whether the display is grayscale (false) or

color (true).

The

colorCount

property controls the number of colors available (when

isColor

is true) or the number of shades of gray available (when

isColor

is

false).

The

gamma

property determines the level of gamma correction to be used when

displaying the device's screen. The default value of this property is 1.0.

For example:

isColor = false

colorCount = 256

gamma = 2.0

Sound Alerts

Sounds that are played when alert with sound is displayed can be specified.

Default sound can be specified by setting the option:

alert.default.sound = <

sound_file

>

This sound file will be used for all alerts where an alert-specific sound is not
defined. Sound for each alert can be defined by: