B4i Tutorial CSBuilder - AttributedStrings builder - Erel    
Jan 16, 2026   
(9 reactions)AttributedStrings are strings with additional styling information.
CSBuilder is a new type added in... can be a string or a CharSequence created with CSBuilder, in B4i a String cannot be used...
link: No. You can use FontAwesome or a similar font file.
BBLabel (BCTextEngine) is a better option for c...
link: Can the CSbuilder append the image like the one in b4a?...
link: It should be EncodeUrl. I will fix it....
B4A Code Snippet [B4X] CSBuilder marking based on regex pattern - Erel    
Dec 25, 2025   
(21 reactions)   
tags: CSS, CSBuilderCSBuilder is supported by B4A and B4J. There are some differences in the supported properties... + Rich Text View
This sub searches for matches and uses CSBuilder to mark the matches.
157518
Private Sub MarkPattern(Input As String, Pattern As String, GroupNumber As Int) As CSBuilder
Dim cs As CSBuilder
cs.Initialize
'this section applies to all text
cs.Color(xui.Color_Black...
link: Example was updated to support B4i....
B4A Tutorial CharSequence / CSBuilder Tutorial - Erel    
Jul 25, 2019   
(69 reactions)   
tags: CSBuilder, text CharSequences: agraham's RichString library or the new CSBuilder object.
This tutorial covers the new CSBuilder object.
CSBuilder is similar to StringBuilder. Instead of building strings, it builds CharSequences that include style information.
Using it is quite simple.
Dim cs As CSBuilder
Label1.../basic4android/images/SS-2017-02-15_14.35.59.png
Almost all methods of CSBuilder return the object... into several lines:
Dim cs As CSBuilder
cs.Initialize.Color(Colors.Red).Append("Hello ")
cs.Bold...
B4A Question [Solved] What is library of csbuilder in B4J and B4i - Olaan    
Sep 11, 2023Hi all,
I 'm creating B4XThaiUtils B4XLib file ,I don't know what is library of csbuilder in B4J and B4i.
Please advise for me.
Best Regards,
Theera...
B4i Question [SOLVED] CSBuilder clickable link color in B4i. How to change it? - JordiCP    
Feb 17, 2023 of which should be clickable. So I thought of using CSBuilder. However, by design, the clickable parts... whatever I try
Does anyone know the proper way to change the color of clickable links by using CSBuilder in B4i? I've tried with (just testing)
Dim cs As CSBuilder
cs.Initialize.Alignment...")
cs..PopAll
and also tried with the B4A CSBuilder tutorial approach (a separate CSBuilder), but it is not compatible with B4i's CSBuilder.
I'm wondering if I am missing something...
B4A Code Snippet [B4X] Set CSBuilder or Text to a Label - Erel    
Oct 20, 2020   
(13 reactions)   
tags: set label textEdit: This sub is included in XUI Views library: XUIViewsUtils.SetTextOrCSBuilderToLabel
This sub accepts a string or CSBuilder and sets it as the Label's text. It is useful for cross platform solutions.
Note that the Text parameter type is Object.
Public Sub SetTextOrCSBuilderToLabel(xlbl... Is CSBuilder And xlbl Is Label Then
Dim lbl As Label = xlbl
lbl.AttributedText = Text
Else...:
SetTextOrCSBuilderToLabel(lbl, "" & 123)
...
B4A Code Snippet Save and load CSBuilders - Erel    
Oct 15, 2018   
(8 reactions)Using this class you can build CharSequences (the output of CSBuilder) and save the information required to build those styled strings. This allows to later load the information and create the same CharSequences.
1. Create a class named PCSBuilder (Persistent CSBuilder):
Sub Class_Globals
Private cs As CSBuilder
Private data As List
Private ser As B4XSerializator
End Sub
Public Sub Initialize As PCSBuilder
cs.Initialize
data.Initialize
If False Then
'to avoid...
B4A Example Simple function to convert Markdown Text to CSBuilder Format - fredo    
Jul 24, 2024   
(11 reactions)This simple function converts Markdown-formatted text so that it can be used as CSBuilder... the application.
The text is converted using the "Sub ProcessMarkdownToCSBuilder(...)" function...://example1.com)
and a (http://example2.com)."$
Dim cs As CSBuilder = ProcessMarkdownToCSBuilder(markdownText)
Label1.Text = cs
cs.EnableClickEvents(Label1)
End Sub
Sub...
link: you add “underline”:
Sub ProcessMarkdownToCSBuilder(markdown As String) As CSBuilder
Dim cs...
B4A Example [B4X] Simple function to highlight searchword in texts in CSBuilder Format - fredo    
Dec 28, 2024   
(11 reactions)This simple function highlights all occurrences of a search term in a given text and returns the result as a CSBuilder.
The output can then be used for labels or MsgBox text.
Sub HighlightCsTextWithRegex(OriginalText As String, searchWord As String) As CSBuilder
Dim escapedSearchWord As String = RegexEscapeSpecialChars(searchWord)
Dim pattern As String = "(?i)" &..., OriginalText)
Dim cs As CSBuilder
cs.Initialize
Dim lastIndex As Int = 0
Do While matcher...
B4J Question Something like CSBuilder for B4j?? - ilan    
Nov 19, 2018is there something like CSBuilder for b4j but NOT Textflow?
textflowwill return a Pane with the formated text. its like drawing on canvas text but i would like to return a colored text and put it in a Textarea so i can also select it later when the app is running.
any idea? thanx...
Page: 1  
2  
3  
4  
5  
6  
7