Bug? B4A 6.8 about rich text Image show

ldhyob

Member
Licensed User
Longtime User
Hi~

Found in version 6.8 rich text box shows the BUG of the picture.

When the number of Image through CSBuilder loading more and line breaks, current line before the Image is not displayed, only at the end of each row in the content is not the Image, won't appear this kind of situation. This kind of situation is usually at the time of continuous uninterrupted Image display.

In addition, MeasureMultilineTextHeight method seems to RichText does not support?

Want to give to solve! thank you!
QQ截图20170305111536.png
QQ截图20170305111006.png
QQ截图20170305111033.png
 

ldhyob

Member
Licensed User
Longtime User
B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")
    Dim cl As ColorDrawable
    cl.Initialize(Colors.Gray,0)
    EditText1.Background=cl
    Dim cs As CSBuilder
    cs.Initialize.Color(Colors.Red).Append("Hello ").Pop
    cs.Bold.Color(Colors.Green).Append("Colorful ").Pop 'two pops: the first removes the green color and the second removes the bold style
    cs.Append("World!").Image(LoadBitmap(File.DirAssets,"7.gif"),25dip,25dip,False).Append("dddd")
    For i=1 To 30
        cs.Image(LoadBitmap(File.DirAssets,"7.gif"),25dip,25dip,False)
    Next
    cs.PopAll
    EditText1.Text=cs
End Sub
 

Attachments

  • TestRichText.zip
    7.8 KB · Views: 175

ldhyob

Member
Licensed User
Longtime User
I've changed it to a Label and it looks properly:

SS-2017-03-05_09.45.33.png


Images are not wrapped automatically.
The above problems, has a characteristic is a newline at the end of line is the Image, if it is written content is the problem. For the Label, as well.
Please download my upload B4A project testing.
 
Top