bbcodeview

  1. W

    Bug? BBCodeView throws exception if text is enclosed in square brackets (and considered an invalid tag)

    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)...
  2. johnmie

    B4J Question jfx8print bbcodeview mystery

    Hi, I followed William's suggestion like this Dim iv As ImageView = BBCodeViewM.ForegroundImageView Dim bmp As Image = iv.getimage Dim newiv As ImageView newiv.Initialize("") Try newiv.SetImage(bmp) Log("newiv set") Catch Log(LastException.message)...
  3. M

    Android Question Append for BBCodeView

    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"))...
  4. H

    Android Question How to add B4XImageView into BBCodeView?

    Hi, 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.Initialize("", "b4xiv") b4xiv.Bitmap = job.GetBitmap bbcMessageContent.Views.Put("iv", iv) bbcMessageContent.Text = $"...
  5. H

    Android Question How to get the height of the total content of BBCodeView?

    Hello, Is there a way to get the height of the content--text, images, etc--of the BBCodeView so that I can resize the latter and may not occupy space other than what the contents occupy? Thanks!
  6. H

    Android Question BBCodeView error when assigning a text: java.lang.RuntimeException: Object should first be initialized (List).

    Hello, 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...
  7. D

    Android Question message "disappear" behind the screen

    Hello, guys! I use this code from Erel to create a chat app. https://www.b4x.com/android/forum/threads/b4x-cross-platform-chat-layout-example.112649/#content i faced the following problem if the word contains many characters without spaces, then they "disappear" behind the screen maybe someone...
  8. alimanam3386

    Android Question Does BCTextEngine supports unicode characters?

    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?
  9. Lucas Eduardo

    iOS Question Chat Example

    Hello everyone, 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...
  10. Toky Olivier

    Android Question [Solved] Center vertically text in BBCodeView

    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...
  11. Sandman

    Wish Add support for kerning in BCTextEngine / BBCodeView

    This is regarding: [B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View https://www.b4x.com/android/forum/threads/b4x-bctextengine-bbcodeview-text-engine-bbcode-parser-rich-text-view.106207/ Examples showing bad kerning, taken from that thread: I am very fond of...
  12. William Lancee

    B4J Question [Solved] Printing BBCodeview using jFX8Print, scaling and background color

    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...
  13. mcqueccu

    Android Question BCTextEngine - how to use default system font and set padding

    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...
Top