Please modify Sub TouchPanel_Touch
Private Sub TouchPanel_Touch (Action As Int, X As Float, Y As Float)
Dim run As BCTextRun = Null
If URLToLines.Size > 0 Or Action = TouchPanel.TOUCH_ACTION_UP Then
run = FindTouchedRun(X, Y)
If run <> Null And...
Showing my application error log (saved to a list and concatenated to a string ready to be processed by a BBCodeView) in a dialog.
This is a large list (just for testing, all errors have been fixed) with some 80 items.
All the error items in the BBCodeView have an item number and these are...
Just started to use BBCodeView as it seems very nice and useful indeed.
Nearly all worked out now, but don't quite understand how the placement of text works.
This is the string passed to the BBCodeView:
strPrompt = $"[TextSize=18]This allows you to run quickly through
a list of...
Hello, I'm using [B4X] Cross platform chat layout example Written by Erel for my chat app. I've changed the "BuildMessage" as below,
Private Sub BuildMessage (Text As Object, User As String,timeX As String) As String
Dim output As String
Hi, my app is using quite a lot of BBCodeviews to display text in various ways. I have created it all to look nice on a mobile phone, but when i install on a tablet it seems the text isn`t sizing properly. My text is much smaller that the 'list numbers'?
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...