Other [work in progress] BCText - Cross platform text engine - Erel    May 13, 2019   (22 reactions) BCText is a custom and cross platform text engine. It can be used for all kinds of things such as cross platform implementation of CSBuilder, rich text view, specialized text layouts and other cases where you need full control over the text layout.
More information next week.
It is not 100% ready B4A Library [B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View - Erel    Dec 31, 2024   (72 reactions) Can be used to change the padding. Default value is:
'left, top, right, bottom
If xui.IsB4J Then
Padding.Initialize(5dip, 5dip, 20dip, 5dip) 'leaves space for the scroll bar.
Else
Padding.Initialize(5dip, 5dip, 5dip, 5dip)
End If
1.01 - Fixes a compilation issue in release mode.
Th B4A Library [B4X] BCToast - Cross platform custom toast message - Erel    Dec 06, 2020   (33 reactions) BCToast is a custom "toast" message implementation based on BCTextEngine: https://www.b4x.com/android/forum/threads/b4x-bctextengine-bbcodeview-text-engine-bbcode-parser-rich-text-view.106207/#content
It requires BCTextEngine v1.65+.
https://www.b4x..png
Note that unlike B4A built-in toast messag B4J Code Snippet [B4X] [BCTextEngine] Custom formatting rules - Alexander Stolte    Jan 05, 2025   (1 reaction) ToString & RightText
End Sub
Public Sub ColorToHex(clr As Int) As String
Dim bc As ByteConverter
Dim Hex As String = bc.HexFromBytes(bc.IntsToBytes(Array As Int(clr)))
If Hex.Length > 6 Then Hex = Hex.SubString(Hex.Length - 6)
Return Hex
End Sub
The result looks like this:
160428
B4A Library [B4X] BBListItem - BCTextEngine inside CLV - Erel    May 27, 2021   (14 reactions) BBCodeView is a scrollable view by itself. Trying to put it inside a CLV will cause all kinds of problems.
BBListItem is a modified version of BBCodeView, which is built for being contained in a CLV.
Among other things, it only draws the currently visible text.
It was written originally for the Ple B4J Question BCText - multiple buttons with tags - MicroDrie (first post)    Apr 11, 2022 Perhaps the CLVExpandable - Allows expanding or collapsing xCustomListView items is something that can help you further? B4A Question How to print text in graphic mode? - TILogistic (first post)    Jul 22, 2023   (2 reactions) BCTextEngine B4A Tutorial [B4X] [B4XPages] BCTextEngine parser: B4X Code Highlighter - Erel    Sep 05, 2019   (21 reactions) https://www.b4x..png
https://www.b4x..png
This is an example of creating a custom parser for BBCodeView. It depends on BCTextEngine v1.61+ which allows setting the text runs directly instead of parsing the BBCode.
The parser is compatible with B4A, B4J and B4i. Note that in B4J the text looks les B4A Library [B4X] BCToolTip - cross platform tool tips - Erel    Jun 30, 2020   (26 reactions) 96407 It is based on BCTextEngine and it supports rich strings set with BBCode: https://www.b4x.com/android/forum/threads/b4x-bctextengine-bbcodeview-text-engine-bbcode-parser-rich-text-view.106207/#content B4A Question can i use MeasureMultilineTextHeight with BBcodeView ? - Erel (first post)    Sep 07, 2022   (1 reaction) Every small measurement is available with BBCodeView. BCTextEngine is a layout and rendering engine. With some work you can get the position of every character. Check this: https://www.b4x.-center-vertically-text-in-bbcodeview.113470/post-708069 Page: 1   2   3   4   5   6   7   Powered by ColBERT |