ratnajyothi
03-05-2009, 08:37 PM
I am trying to display smileys and text in my chat application.I am retrieving the text using the richinputtext and displaying it.At present images are displaying at next line and text in other line.
Here is the code snippet
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE canvas PUBLIC "-//OpenLaszlo//DTD Main Document Type//EN" "lzx.dtd">
<canvas width="1000">
<view layout="axis:y;spacing:5">
<edittext id="ratna">
<method event="ontext">
if(this.getText()!=" ")
{
Debug.write("ratna iii-----"+this.getText());
messageText.setText(this.getText());
}
</method>
</edittext>
<text id="messageText" width="220" multiline="true">
<method event="ontext">
Debug.write("well------------"+this.getText());
</method>
</text>
</view>
</canvas>
please enter the below text in edittext box
<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#FF0000" LETTERSPACING="0" KERNING="0"><B>zczczxc aaaaaaaaaaaaa</B><B><I> aaaaaaaaaa</I></B><B><U>ssssssssssss</U></B></FONT><IMG SRC="face-surprise.png" float="right"/></P>
Thanks,
Ratna
Here is the code snippet
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE canvas PUBLIC "-//OpenLaszlo//DTD Main Document Type//EN" "lzx.dtd">
<canvas width="1000">
<view layout="axis:y;spacing:5">
<edittext id="ratna">
<method event="ontext">
if(this.getText()!=" ")
{
Debug.write("ratna iii-----"+this.getText());
messageText.setText(this.getText());
}
</method>
</edittext>
<text id="messageText" width="220" multiline="true">
<method event="ontext">
Debug.write("well------------"+this.getText());
</method>
</text>
</view>
</canvas>
please enter the below text in edittext box
<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#FF0000" LETTERSPACING="0" KERNING="0"><B>zczczxc aaaaaaaaaaaaa</B><B><I> aaaaaaaaaa</I></B><B><U>ssssssssssss</U></B></FONT><IMG SRC="face-surprise.png" float="right"/></P>
Thanks,
Ratna