Android Question SD FlexGrid and CSBuilder

sn_nn

Member
Licensed User
Longtime User
May be is anybody knows, is it possible use SD FlexGrid and CSBuilder together?
i tryed this, but this way is incorrect...
B4X:
Sub Button1_Click
'It doesn't matter whether the methods are chained or split into several lines:
Dim cs As CSBuilder
cs.Initialize.Color(Colors.Red).Append("Hello ")
cs.Bold.Color(Colors.Green).Append("Colorful ").Pop.Pop 'two pops: the first removes the green color and the second removes the bold style
cs.Append("World!").PopAll
Label1.Text = cs
'can also be set as the activity title
Activity.Title = cs
'and Toast messages and in other places...
ToastMessageShow(cs, True) 
SDFlexGrid.SetCellValue(2,1,cs) 'Here Cell looks only as simple text!
End Sub
1599476201526.png
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
You were wrong to post the question. It doesn't go into the library section but into that questions.

I think it is possible to use CSBuilder in some text, but I haven't tested. I'll do some texts in the next few days.
Does it give you an error? Give me some more details
 
Upvote 0

sn_nn

Member
Licensed User
Longtime User
Hello, Star-Dust! i'm trying translate one acupuncture project from Delphi (Windows) to B4A (Android). The SD-flexgrid is mostly usefull for this.
I need do something like this, using SD Flex Grid:
1599475662562.png

No errors was founded.
For me will be enough to change the color of some part of text in the cell's...
 

Attachments

  • 1599475076017.png
    1599475076017.png
    5.2 KB · Views: 181
  • 1599475616823.png
    1599475616823.png
    32.7 KB · Views: 173
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Download version 0.07 which allows you to also enter CsBuild in the boxes declared String
 
Upvote 0

sn_nn

Member
Licensed User
Longtime User
Yes, the problem was solved witch version 0.07 and everything is working.
Thank you, Star-Dust!
 
Upvote 0
Top