Text

Parse basic attributes and advanced attributes of Text, and present it as described in XML file.

Table 1.
Function Function description Default value Sample in XML
background Set background color for Text OS <Text background="240,0,0"/>
foreground Set foreground color for Text OS <Text foreground="240,0,0"/>
font Set font for Text OS <Text font = " Arial, 10, BOLD|ITALIC"/>
bounds Set margin bounds(X, Y, Width, Height) for Text OS <Text bounds="15, 15, 466, 18"/>
text Set text for Text, but you can’t set HTML special characters directly(e.g. if you want to set ‘&’, you must set it to &amp. ) "" <Text text="Test Text"/>
enabled If it is true, the Text is enabled; If it is false, it is disabled. TRUE <Text enabled="TRUE"/>
editable If it is true, the Text is editable; If it is false, it is non-editable. TRUE <Text editable="TRUE"/>
visible If it is true, the Text is visible; If it is false, it is invisible. TRUE <Text visible="TRUE"/>
wrap If it is true, when text is up to width of text box, text can be auto-wrapped; If it if false, text can’t be auto-wrapped. FALSE <Text wrap="TRUE"/>
alignment Set alignment mode, it has three values: LEFT, CENTER, and RIGHT. LEFT <Text alignment="CENTER"/>
maxLength Set maximum length of Text INFINITE <Text maxLength="10"/>
minLength Set minimum length of Text No default <Text minLength="10"/>
autoTab If it is true, when text exceeds maximum length, focus will automatically jump off the text box ; if it is false, when text exceeds maximum length, focus will not automatically jump off the text box. FALSE <Text autoTab="TRUE"/>
autoClear When the focus is on the Text, if it is true, press tab key, text in the text box will be auto selected; if it is false, press tab key, text in the text box will not be selected. FALSE <Text autoClear="TRUE"/>
required If it is true, the Text must be filled in, if it's not filled in, its background will show yellow, and you can’t submit the page. FALSE <Text required="TRUE"/>
multiline If it is true, you can input multiple lines. If it is false, you can’t input multiple line FALSE <Text multiline="FALSE"/>
proposals When focus on text box, it will pop out a tip list, including all the proper values for text box No default <Text><.map Injection="proposal"><entry key="01" value="RMB"/><entry key="02" value="HKD"/><entry key="03" value="USD"/></map></Text>
tabIndex Define tab focus sequence. INFINITE <Text tabIndex="1"/>
dataName Get data from data layer according to the dataName. NULL <Text dataName="dataname"/>
helpID helpId is defined in myHelpContexts.xml, you press shortcut key when the focus is on the Text, it will pop up help message about the Text NULL <Text helpId="textId"/>