labeledinputtext.lzx
<library>
<class name="labeledinputtext" extends="view" width="100%" visible="true">
<attribute name="label" type="string"/>
<attribute name="fontname" type="string" value="Verdana, Arial, sans
"/>
<attribute name="labelwidth" type="number" value="68
"/>
<attribute name="labelfont" type="string" value="${detailslabel_style.font}"/>
<attribute name="labelcolor" type="number" value="${detailslabel_style.textcolor}"/>
<attribute name="labelsize" type="string" value="${detailslabel_style.fontsize}"/>
<attribute name="textcolor" type="string" value="0x000000
"/>
<attribute name="fieldwidth" type="number" value="128
"/>
<attribute name="inset" type="number" value="3
"/>
<attribute name="fieldheight" type="number" value="18
"/>
<attribute name="multiline" type="boolean" value="false
"/>
<attribute name="maxlength" value="null
"/>
<lzedittext name="editabletext" submitname="${parent.name}" fontsize="10" x="$once{classroot.labelwidth}" width="$once{classroot.fieldwidth}" styleable="false" height="$once{classroot.fieldheight}" bgcolor="white" font="$once{classroot.fontname}" multiline="$once{classroot.multiline}" maxlength="$once{classroot.maxlength}"/>
<text y="2" x="$once{parent.editabletext.x-this.getTextWidth()}" fgcolor="$once{parent.labelcolor}" font="$once{classroot.labelfont}" fontsize="$once{classroot.labelsize}" text="$once{classroot.label + ':'}"/>
<method name="applyData" args="txt">
this.editabletext.applyData(txt);
</method>
<method name="updateData" args="txt">
return this.editabletext.updateData();
</method>
</class>
</library>