Angel Garcia Member Licensed User Jan 11, 2021 #1 Hello Everyone, Maybe this is a silly question, I'm new in B4i and i'm translating a long project from B4A to B4i, I'm debuging on an iPhone and i'm getting weird codes when trying to append a single image to a csBuilder and showing it in a label object I'm using this post information: https://www.b4x.com/android/forum/threads/csbuilder-size-appendimage.87211/#post-552019 I always get: <b4icsbuilder..., instead of the proper image. I'm building csbuilder like this: Code: Copy Dim cs1 as Csbuilder cs1.Initialize CallSub3(Starter,"AppendImage",cs1,LoadBitmapResize(File.DirAssets,"google-logo-9827.png",35dip,35dip,True)) cs1.PopAll Label8.Text=cs1 Many thanks all for your guidance Regards!
Hello Everyone, Maybe this is a silly question, I'm new in B4i and i'm translating a long project from B4A to B4i, I'm debuging on an iPhone and i'm getting weird codes when trying to append a single image to a csBuilder and showing it in a label object I'm using this post information: https://www.b4x.com/android/forum/threads/csbuilder-size-appendimage.87211/#post-552019 I always get: <b4icsbuilder..., instead of the proper image. I'm building csbuilder like this: Code: Copy Dim cs1 as Csbuilder cs1.Initialize CallSub3(Starter,"AppendImage",cs1,LoadBitmapResize(File.DirAssets,"google-logo-9827.png",35dip,35dip,True)) cs1.PopAll Label8.Text=cs1 Many thanks all for your guidance Regards!
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Jan 11, 2021 #2 You need to assign cs strings to the AttributedText field. see CSBuilder - AttributedStrings builder AttributedStrings are strings with additional styling information. CSBuilder is a new type added in B4i v4.00 which helps with creating such strings. It is an alternative to iRichString class: https://www.b4x.com/android/forum/threads/48573/#content Note that unlike in B4A, where CharSequence... www.b4x.com Upvote 0
You need to assign cs strings to the AttributedText field. see CSBuilder - AttributedStrings builder AttributedStrings are strings with additional styling information. CSBuilder is a new type added in B4i v4.00 which helps with creating such strings. It is an alternative to iRichString class: https://www.b4x.com/android/forum/threads/48573/#content Note that unlike in B4A, where CharSequence... www.b4x.com
Angel Garcia Member Licensed User Jan 12, 2021 #3 Andrew (Digitwell) said: You need to assign cs strings to the AttributedText field. Click to expand... Lol you were right, i knew it was a silly question. ? Now its resolved, but the images looks weird, they don't keep the aspect ratio, I guess ill change to imageviews Thanks! Upvote 0
Andrew (Digitwell) said: You need to assign cs strings to the AttributedText field. Click to expand... Lol you were right, i knew it was a silly question. ? Now its resolved, but the images looks weird, they don't keep the aspect ratio, I guess ill change to imageviews Thanks!