Appeon Text Controls

eon_singlelineedit, eon_statictext, & eon_editmask

Overview

Appeon PowerServer provides additional properties and events to help developers take advantage of SingleLineEdit control, StaticText control, and EditMask control:

  • In order to align text centered vertically, Appeon provides a new property (integer ii_vertical) and a user event (ue_setvertical) for the SingleLineEdit control, StaticText control, and EditMask control.

  • To allow developers to take control of the type of the virtual keyboard on iOS and Android, Appeon PowerServer provides a new property (integer ii_keyboardtype) for the EditMask and SingleLineEdit control.

To use the new properties or user event, you will need to call the eon_singlelineeditex, eon_statictextex, or eon_editmaskex objects in the Appeon Workarounds PBL.

Except for the new properties and user event, the objects have the exact same functions, events, and properties as the PowerBuilder SingleLineEdit control, StaticText control, and EditMask control.

Properties
integer ii_vertical

Sets the text alignment. When ii_vertical is set to 1, text in eon_singlelineeditex, eon_statictextex, or eon_editmaskex is centered vertically; when set to 0, text alignment is consistent with that in PowerBuilder.

integer ii_keyboardtype

This property is applicable to eon_editmaskex and eon_singlelineeditex on mobile platform only.

Sets the type of the keyboard that displays when eon_editmaskex or eon_singlelineeditex gets focus: 0 - alphabetical keyboard, 1 - numerical keyboard, 2 - URL keyboard.

2 is unsupported on Android devices, thus 0 will be used instead if 2 is set for Android devices.

Events
ue_setvertical

Description

Sets the ii_vertical property for the object.

Syntax

singlelineedit.ue_setvertical ( integer ai_vertical )

statictext.ue_setvertical ( integer ai_vertical )

editmask.ue_setvertical ( integer ai_vertical )

Argument Type

Argument

Description

eon_mobile_singlelineeditex

singlelineedit

The name of the eon_singlelineeditex object.

eon_mobile_statictextex

statictext

The name of the eon_statictextex object.

eon_mobile_editmaskex

editmask

The name of the eon_editmaskex object.

integer

ai_vertical

The value of the vertical property ( ii_vertical ) for the object.

Return value

Integer

1 - the object is centered vertically.

0 - text alignment of the object is consistent with PowerBuilder.