Wish B4XTableSelections - Keep existing formatting

MrKim

Well-Known Member
Licensed User
Longtime User
I was so exited when I saw this. It would be rally nice to highlight the selected line.
Unfortunately I am making extensive use of B4XDateFormatter and B4XStringFormatter to format some of the columns (examples below) and I have found that B4XTableSelections strips all of the formatting.
B4X:
'format the start date Red If Start Date is today or late, Yellow if within 3 days
    Dim DFYellow As B4XDateFormatter
    DFYellow.Initialize
    StartDateCol.DateFormatter = DFYellow
    Dim HasAF As B4XDateFormatData = StartDateCol.DateFormatter.NewFormatData
    HasAF.TextColor = XUI.Color_Yellow
    HasAF.BackColor = 0  ' xui.Color_White
    HasAF.FormatFont = XUI.CreateDefaultBoldFont(UnSchedOpsList.LabelsFont.Size)
    StartDateCol.DateFormatter.AddFormatData(HasAF, True, 4)
    Dim HasAFRed As B4XDateFormatData = StartDateCol.DateFormatter.CopyFormatData(HasAF)
    HasAFRed.TextColor = XUI.Color_Red
    StartDateCol.DateFormatter.AddFormatData(HasAFRed, True, 0)
1732104486828.png

or perhaps someone smarter than me could point me in the right direction so I can modify B4XTableSelections to use my formatting?
As always I want to thank everyone here for your incredible support. B4X has made programming fun again!
 
Top