csbuilder

  1. Lucas Eduardo

    iOS Question Change link color - CSBuilder

    Hello, it's possible to change the link color from CS Builder? If yes, how could i do it? Thanks.
  2. Lucas Eduardo

    iOS Question Csbuilder with leading margin

    Hello, In B4A there is this code to make margins in csbuilder https://www.b4x.com/android/forum/threads/csbuilder-with-leading-margin.90428/#content Is there a way to do this in B4I? Thank you.
  3. S

    B4A Class CSBuilder, store in JSON format

    Hello, This class can parse JSON to generate CSBuilder. Create a json string, save it in a file, add it to assets folder, and display it with this class. All the CSBuilder capabilities are supported. Comments in clsCSBuilderParser.bas and samples files explains the JSON structure. spsp
  4. nwhitfield

    iOS Question Markdown to attributed strings

    Does anyone have a good solution for this? Ideally one that will work for both B4i and B4A. There are plenty of libraries around in both Swift and Objective C, but not so much for Java. I've tried playing around a bit with the Markdown-to-HTML code here...
  5. I

    Android Code Snippet Store CSBuilder formatted text in plain .txt file

    Hi all. In my app I want to provide instructions and info about the app (credits, licenses, etc.) in several languages, and would like to show the text with some formatting (colored, bold, underlined, textsize, ...). With a plain text file, formatting is not possible, so I searched for the best...
  6. Dave O

    Android Question CharSequence vs. CSBuilder in parameters?

    If we want to include support for CharSequence in our classes and libraries, should we be changing external-facing String parameters (and any related internal ones) to CSBuilder? (If I understand correctly, we can't reference CharSequence directly.)
  7. R

    Android Question Problem serializing CSBuilder with PCSBuilderPlus class

    Using the PCSBuilderPlus class, as posted here: https://www.b4x.com/android/forum/threads/save-load-text-formatted.92263/#post-583864 Nearly got this working but get this error when trying to retrieve the byte array with ToBytes (made Public): java.lang.RuntimeException: Cannot serialize...
  8. R

    Android Question Crash on clicking selected CSBuilder text in EditText

    Have a simple EditText that has a CSBuilder text in it (for SQL syntax highlighting). When I select a length of text (with the normal standard long click) and then do a click within that text I get a crash with this error message: java.lang.IndexOutOfBoundsException: getChars (-1 ... 527)...
  9. K

    Android Question CSBuilder ClickableWord Error

    In my, I'm using CustomListview and labels. on one label I clickable work like this : Dim cs As CSBuilder cs.Initialize.Append(CreateClickableWord("9225146803")) Label1.Text = cs cs.EnableClickEvents(Label1) Word click : Sub Word_Click (Tag As Object) Log("aaaaaa" & Tag)...
  10. R

    Android Question Simple input dialog with coloured text.

    Currently use this code for a simple inputbox dialog. It uses the Dialogs library, version 4.01: Sub InputBox(Prompt As String, Title As String, Default As String, Hint As String) As String Dim Id As InputDialog Dim iRet As Int Id.Hint = Hint Id.Input = Default iRet = Id.Show(Prompt...
  11. FERNANDO SILVEIRA

    Android Question Doubt on CharSequence / CSBuilder usage

    Hello guys, I read this topic and was trying to implement some text enhancements to my app. It happens that the CS elements seems to work directly on the view and, in my case, I work literals and fields in string literals and, at the end, combine these string literals on the final label.text...
  12. Rob Bliss

    Android Question CSBuilder Colour

    Hi all, I just wanted to know if there is anything that would prevent CSBuilder from altering the colour of a string. Alternatively is there anything that would cause it to only display white or black text?? Cheers
Top