See subject and attached demo project. If BBCodeView1.Text is set to some string that contains square brackets but these don't enclose a valid tag, an exception is thrown and the BBCodeView becomes empty and further unusable (further attempts to set the text result in more RuntimeExceptions)...
I followed William's suggestion like this
Dim iv As ImageView = BBCodeViewM.ForegroundImageView
Dim bmp As Image = iv.getimage
Dim newiv As ImageView
Is there an append for BBCodeView?
I am looping through a database and I want to append the data to the current smart string.
I am trying:
For x=0 To 6
Dim SenderFilter As Object = mSQL.ExecQueryAsync("SQL", "SELECT * FROM names WHERE id=? ", Array As String("3"))...
Adding an imageview inside the BBCodeView is simple but I can't add the B4XImageView just like the imageview with the following code:
Dim b4xiv As B4XImageView
b4xiv.Bitmap = job.GetBitmap
bbcMessageContent.Text = $"...
Erel has a chat example which demonstrates the use of BBCodeView. In the example, BBCodeView is in the same .bal file as the listview. In my case, the BBCodeView is in another .bal file. But every time I assign a value on its text property, I get the above error. I placed the...
I use this code from Erel to create a chat app.
i faced the following problem if the word contains many characters without spaces, then they "disappear" behind the screen
I am trying to using Erel cross platform chat layout example. It's excellent and useful but I have an issue with unicode characters ( like Farsi language or Arabic language)
So how can I fix this issue?
I use this code in B4A and works correctly. https://www.b4x.com/android/forum/threads/chat-example-bctextengine.113203/#post-706276
But when i use in B4I the text message it's not showing, just the bubble
my sub BuildMessage it's this one
Private Sub BuildMessage (Text As...
I did many attemps to center vertically text in BBCodeView when paragraph height is not larger than the Base height (or the scrollview height) but no success. It's like text in BBLabel which is centered vertically but in a BBCodeView. I picked code from BBLabel (from the Redraw sub) but always...
This is regarding:
[B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View
Examples showing bad kerning, taken from that thread:
I am very fond of...
I can't get the background to show as white, and after scaling, I can't get the BBCodeview back to original scaling. Any ideas?
I should add that my printer is a black and white HP laser printer, so the faint gray background I see on paper could be a faint color. I don't know...
1. The BBCodeview seems to be using lighter font than the system font when i run the example, and also used in my application.
How do i set a custom font or stick to default system font?
2. Bug in padding - When i set padding left and right to the BBCodeView in designer, it crops off parts of...