Description
An AmlText is the element for placing text on a display. The text exhibited is the value of the text attribute. The text can be adjusted as to font size (textsize attribute), and horizontal alignment (halign attribute). The text can be made italic, bold, or underline.
Element Body
((AmlContainer*, AmlStyle?)
Parent
AmlPage, AmlChoice, AmlOption, AmlForm, AmlTableCol, AmlTableHead, AmlInput, AmlLink, AmlControlMenu, AmlCheckBox, AmlGroup, AmlListItem, AmlOrderedList, AmlList, AmlSelectList
Restrictions
None
AML Attributes
Attribute |
Description |
Possible values |
Default |
Req’d? |
---|---|---|---|---|
text |
Set text displayed |
CDATA |
No Default |
No |
textsize |
Set size of text |
(big|normal|small) |
normal |
No |
halign |
Set horizontal alignment |
(left|right|center) |
center |
No |
valign |
Set vertical alignment |
(top|middle|bottom) |
normal |
No |
font |
Set font |
CDATA |
No Default |
No |
italics |
Set italics emphasis |
(true|false) |
false |
No |
bold |
Set bold emphasis |
(true|false) |
false |
No |
underline |
Set underline emphasis |
(true|false) |
false |
No |
color |
Set color |
CDATA |
No Default |
No |
blink |
Set the text to blink |
(true|false) |
false |
No |
marquee |
Set the title to marquee |
(true|false) |
false |
No |
cache |
Set caching |
(true|false) |
false |
No |
persist |
Set the persist flag |
(true|false) |
false |
No |
encode |
Set the encode flag |
(true|false) |
false |
No |
Markup Language Examples
Sample AML Input:
<AmlDocument> <AmlPage title="Hello World Page"> <AmlText text="Hello World!"/> </AmlPage> </AmlDocument>
Sample WML Output:
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head> <meta http-equiv="Cache-Control" content="max-age=0"/> </head> <card id="agp0"> <p align="center">Hello World Page</p> <p>Hello World!</p> </card> </wml>
Sample cHTML Output:
<html> <head> <title></title> <meta name="PalmComputingPlatform" content="true"></meta> <meta http-equiv="Pragma" content="no-cache"></meta> <meta http-equiv="Cache-Control" content="no-cache"></meta> </head> <body> <div align="center"> <a name="agp0">Hello World Page</a> </div> Hello World! </body> </html>