Android Question B4XTable question

grafsoft

Well-Known Member
Licensed User
Longtime User
The designer says the header color should be white, but it is dark gray.

Being as it is, the user only sees the light gray symbols in the header, which have no function here, and not the dark gray ones, unless he/she looks very closely.

How can I change that?


Screenshot_20221030-162647.jpg
 

grafsoft

Well-Known Member
Licensed User
Longtime User
Sleep(0) 'this is required to let B4XTable load its layout. B4XTable1.pnlHeader.Color = B4XTable1.HeaderColor 'or any other value
Where should I put this code? I tried directly after LoadLayout and after SetData, with a Refresh afterwards. No result.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Where should I put this code?

Put these 2 lines after you load the layout that has the B4XTable. That is the only place you need it.it would work:
B4X:
Sleep(0)  'Very important for this line to be here below loadlayout.
    B4XTable1.pnlHeader.Color = xui.Color_Red
 
Upvote 0
Solution

grafsoft

Well-Known Member
Licensed User
Longtime User
Thank you!Erel was right from the start, I made a stupid mistake ...
 
Last edited:
Upvote 0
Top